On Thu, Aug 25, 2011 at 04:48:57PM -0500, Tom Gall wrote:
Hi all,
Say has anyone else run oprofile on recent builds on panda?
By recent I mean say anything since 11.07? Reason for asking is I'm seeing basically a very very small number of samples being recorded... as in there's no way this is right.
These days, I believe the separate oprofile backend for ARM has gone away, and oprofile is implemented using the perf backend anyway.
So, perhaps a more interesting question is: does perf work?
See whether this works:
apt-get install linux-linaro-tools-`uname -r` perf stat apt-get update # or something
I think there was an issue with a patch which enabled perf on omap4 but broke it on all other platforms. This patch is present in the linux-linaro-natty tree, but I can't see it in -oneiric. I think it may have been dropped / backed out from the oneiric tree because of the problems it caused:
In linux-linaro-natty/master: commit 457520e3fbce80812c6901c226ec242fdb906c63 (arm: pmu: support pmu/perf on OMAP4)
Mark Rutland posted a patch to fix the introduced problem -- search the linaro-dev archives for [PATCH] Fix NULL-dereference introduced by OMAP4 PMU patch
...however, I don't know whether or not this is still relevant.
If perf works but oprofile doesn't, that's a separate problem and should be investigated. You might want to consider switching to perf anyway though -- in my experience it's less problem-prone than using oprofile.
Cheers ---Dave
Log:
root@linaro-desktop:/home/linaro/ltj-1.1.90-d# opcontrol --reset Signalling daemon... done root@linaro-desktop:/home/linaro/ltj-1.1.90-d# opcontrol --start Profiler running. root@linaro-desktop:/home/linaro/ltj-1.1.90-d# ./djpeg ~linaro/Saturn.jpg > /dev/null Decoding took 1216 ms root@linaro-desktop:/home/linaro/ltj-1.1.90-d# ./djpeg ~linaro/Saturn.jpg > /dev/null Decoding took 1206 ms root@linaro-desktop:/home/linaro/ltj-1.1.90-d# root@linaro-desktop:/home/linaro/ltj-1.1.90-d# ./djpeg ~linaro/Saturn.jpg > /dev/null Decoding took 1207 ms root@linaro-desktop:/home/linaro/ltj-1.1.90-d# ./djpeg ~linaro/Saturn.jpg > /dev/null Decoding took 1212 ms root@linaro-desktop:/home/linaro/ltj-1.1.90-d# opcontrol --stop Stopping profiling. root@linaro-desktop:/home/linaro/ltj-1.1.90-d# opreport -l ./djpeg Overflow stats not available CPU: CPU with timer interrupt, speed 0 MHz (estimated) Profiling through timer interrupt samples % symbol name 1 100.000 put_pixel_rows
I'll pull the latest and retry still, this I think is the11.07 ubuntu-desktop LEB release for panda (or pretty close) uname -a Linux linaro-desktop 3.0.0-1001-linaro-omap #1~ppa~natty-Ubuntu SMP PREEMPT Mon Jul 25 22:44:36 UTC 2011 armv7l armv7l armv7l GNU/Linux
Thanks!
-- Regards, Tom
"We want great men who, when fortune frowns will not be discouraged."
- Colonel Henry Knox
Linaro.org │ Open source software for ARM SoCs w) tom.gall att linaro.org w) tom_gall att vnet.ibm.com h) tom_gall att mac.com
linaro-dev mailing list linaro-dev@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-dev