aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/annotate.c
diff options
context:
space:
mode:
authorVince Weaver <[email protected]>2013-12-30 20:39:45 +0000
committerArnaldo Carvalho de Melo <[email protected]>2014-02-10 14:34:31 +0000
commit88fee52e58ca14d8465b614774ed0bf08e1a7790 (patch)
treed0043a4b7886fdfa76ed6bc0d95e24df2b03e079 /tools/perf/util/annotate.c
parentperf tools: Handle PERF_RECORD_HEADER_EVENT_TYPE properly (diff)
downloadkernel-88fee52e58ca14d8465b614774ed0bf08e1a7790.tar.gz
kernel-88fee52e58ca14d8465b614774ed0bf08e1a7790.zip
perf list: Fix checking for supported events on older kernels
"perf list" listing of hardware events doesn't work on older ARM devices. The change enabling event detection: commit b41f1cec91c37eeea6fdb15effbfa24ea0a5536b Author: Namhyung Kim <[email protected]> Date: Tue Aug 27 11:41:53 2013 +0900 perf list: Skip unsupported events uses the following code in tools/perf/util/parse-events.c: struct perf_event_attr attr = { .type = type, .config = config, .disabled = 1, .exclude_kernel = 1, }; On ARM machines pre-dating the Cortex-A15 this doesn't work, as these machines don't support .exclude_kernel. So starting with 3.12 "perf list" does not report any hardware events at all on older machines (seen on Rasp-Pi, Pandaboard, Beagleboard, etc). This version of the patch makes changes suggested by Namhyung Kim to check for EACCESS and retry (instead of just dropping the exclude_kernel) so we can properly handle machines where /proc/sys/kernel/perf_event_paranoid is set to 2. Reported-by: Chad Paradis <[email protected]> Signed-off-by: Vince Weaver <[email protected]> Acked-by: Namhyung Kim <[email protected]> Cc: Chad Paradis <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/r/alpine.DEB.2.10.1312301536150.28814@vincent-weaver-1.um.maine.edu Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/annotate.c')
0 files changed, 0 insertions, 0 deletions