Show Posts
|
|
Pages: [1]
|
|
2
|
Linux Stuff / General Linux questions / Re: oprofile on D2plug
|
on: November 29, 2011, 09:00:47 AM
|
|
I moved to oprofile version 0.9.5 and things appear to be much more reliable now. Every once in a while no data is collected, but usually I get results. (hope this lasts!)
Some of the settings I am using: Event 0: CPU_CYCLES:100000:0:1:1 Separate options: library kernel vmlinux file: /home/ubuntu/build/lsp/d2plug-linux-2.6.32.y/vmlinux Image filter: none Call-graph depth: 0
And the steps that seem to work best for me: sudo opcontrol --init sudo opcontrol --reset sudo opcontrol --start --session-dir=/home/ubuntu/pdata <run tests> sudo opcontrol --dump sudo opcontrol --stop opreport --session-dir=/home/ubuntu/pdata sudo opcontrol --deinit
|
|
|
|
|
3
|
Linux Stuff / General Linux questions / Re: oprofile on D2plug
|
on: November 23, 2011, 04:36:33 PM
|
|
Things were working well, then out of the blue things stopped working. Same error when trying to generate a report: error: no sample files found: profile specification too strict ?
Tried rebooting, didn't help. Makes me wonder what reallly got things working to begin with.
My ./root/.oprofile/daemonrc file:
SESSION_DIR=/home/ubuntu/pdata CHOSEN_EVENTS_0=CPU_CYCLES:100000:0:1:1 NR_CHOSEN=1 SEPARATE_LIB=1 SEPARATE_KERNEL=1 SEPARATE_THREAD=0 SEPARATE_CPU=0 VMLINUX=none IMAGE_FILTER= CPU_BUF_SIZE=0 CALLGRAPH=20 XENIMAGE=none
Are folks using the same kernel as I am? Linux D2Plug 2.6.32.9-dove-5.4.2
|
|
|
|
|
4
|
Linux Stuff / General Linux questions / Re: oprofile on D2plug
|
on: November 23, 2011, 11:04:15 AM
|
|
Thanks again!
I created a new directory in my users home dir and pointed oprofile at it: sudo opcontrol --session-dir=/home/ubuntu/pdata
Then ran the test as before, and the report showed lots of data this time: opreport --session-dir=/home/ubuntu/pdata
I noticed that all the files in /home/ubuntu/pdata are owned by root, same as in /var/lib/oprofile. Makes some sense as oprofile is started as root (using sudo).
Where does the permission problem come from?
|
|
|
|
|
5
|
Linux Stuff / General Linux questions / Re: oprofile on D2plug
|
on: November 22, 2011, 03:56:47 PM
|
|
I tried collecting some profile data today, but got no data. Guessing something is still not configured properly.
Here are the steps I tried:
sudo opcontrol --deinit
sudo opcontrol --status Daemon not running Event 0: CPU_CYCLES:100000:0:1:1 Separate options: library kernel vmlinux file: none Image filter: none Call-graph depth: 10
sudo opcontrol --init
sudo opcontrol --reset
sudo opcontrol --start --verbose Parameters used: SESSION_DIR /var/lib/oprofile LOCK_FILE /var/lib/oprofile/lock SAMPLES_DIR /var/lib/oprofile/samples CURRENT_SAMPLES_DIR /var/lib/oprofile/samples/current CPUTYPE arm/mrvl_pj4 BUF_SIZE default value BUF_WATERSHED default value CPU_BUF_SIZE default value SEPARATE_LIB 1 SEPARATE_KERNEL 1 SEPARATE_THREAD 0 SEPARATE_CPU 0 CALLGRAPH 10 VMLINUX none KERNEL_RANGE XENIMAGE none XEN_RANGE executing oprofiled --session-dir=/var/lib/oprofile --separate-lib=1 --separate-kernel=1 --separate-thread=0 --separate-cpu=0 --events=CPU_CYCLES:254:0:100000:0:1:1, --no-vmlinux --verbose=all Events: CPU_CYCLES:254:0:100000:0:1:1, Using 2.6+ OProfile kernel interface. Using log file /var/lib/oprofile/samples/oprofiled.log Daemon started. Profiler running.
<run test process>
sudo opcontrol --stop Stopping profiling.
opreport error: no sample files found: profile specification too strict ?
|
|
|
|
|
6
|
Linux Stuff / General Linux questions / Re: oprofile on D2plug
|
on: November 21, 2011, 04:14:53 PM
|
|
Thanks for the help, your patch has fixed the issue! Will try to do some profiling soon.
The output of my ophelp command is now: oprofile: available events for CPU type "ARM/Marvell PJ4 Core" ...
And: cat /dev/oprofile/cpu_type arm/mrvl_pj4
Much better!
|
|
|
|
|
7
|
Linux Stuff / General Linux questions / oprofile on D2plug
|
on: November 18, 2011, 12:42:46 PM
|
|
Having trouble getting oprofile working on my D2plug, hope someone can point me in the right direction. Here is the error I am getting:
sudo opcontrol --init cpu_type 'unset' is not valid you should upgrade oprofile or force the use of timer mode
The /dev/oprofile/cpu_type file is indeed empty.
I rebuilt and installed the kernel to verify oprofile support was enabled (and to get a good vmlinux), the following settings were in the kernel .config file:
CONFIG_OPROFILE_MRVL_PJ4=y CONFIG_OPROFILE=y CONFIG_HAVE_OPROFILE=y
I configured oprofile 0.9.7 as follows:
./configure --with-linux=~/build/lsp/d2plug-linux-2.6.32.y/ --with-kernel-support --with-qt-dir=/usr/share/qt3
Where did I go wrong? Any tips greatly appreciated.
|
|
|
|
|