diff options
| author | David Ahern <[email protected]> | 2012-05-08 15:28:57 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2012-05-09 14:57:29 +0000 |
| commit | 028d455b12719a48b1c4b51ce07a074135726f8f (patch) | |
| tree | 08959d68e6f3dc9cbd4d8e14467c1bdc24ade900 /tools/perf/ui/browsers/annotate.c | |
| parent | perf report: Fix format string for x86-32 compilation (diff) | |
| download | kernel-028d455b12719a48b1c4b51ce07a074135726f8f.tar.gz kernel-028d455b12719a48b1c4b51ce07a074135726f8f.zip | |
perf record: Fix fallback to cpu-clock on ppc
perf-record on PPC is not falling back to cpu-clock:
$ perf record -ag -fo /tmp/perf.data -- sleep 1
Error: sys_perf_event_open() syscall returned with 6 (No such device or address). /bin/dmesg may provide additional information.
Fatal: No CONFIG_PERF_EVENTS=y kernel support configured?
The problem is that until 2.6.37 (behavior changed with commit b0a873e)
perf on PPC returns ENXIO when hw_perf_event_init() fails. With this
patch we get the expected behavior:
$ perf record -ag -fo /tmp/perf.data -v -- sleep 1
Old kernel, cannot exclude guest or host samples.
The cycles event is not supported, trying to fall back to cpu-clock-ticks
[ perf record: Woken up 1 times to write data ]
[ perf record: Captured and wrote 0.151 MB /tmp/perf.data (~6592 samples) ]
Signed-off-by: David Ahern <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/ui/browsers/annotate.c')
0 files changed, 0 insertions, 0 deletions
