aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/python.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <[email protected]>2011-02-21 19:05:50 +0000
committerArnaldo Carvalho de Melo <[email protected]>2011-02-22 01:27:59 +0000
commite603dc15072c7fec0ae263597e6dabc3bb4c5c5b (patch)
treea4fa6e1a548570ce71b8ed97399933de7303c321 /tools/perf/util/python.c
parentperf probe: Fix error propagation leading to segfault (diff)
downloadkernel-e603dc15072c7fec0ae263597e6dabc3bb4c5c5b.tar.gz
kernel-e603dc15072c7fec0ae263597e6dabc3bb4c5c5b.zip
perf evsel: Fix inverted test for fixing up attr.inherit flag
The kernel refuses mmapping an event with the inherit flag set for something that is systemwide (cpu == -1), and the evsel layer got this reversed at some point, fix it. The symtom was that the --pid and --tid parameters for 'perf record' and 'perf top' returned with -EINVAL, like: # /tmp/build-perf/perf record -v -fo/tmp/perf.data -p 1042 Warning: ... trying to fall back to cpu-clock-ticks Fatal: failed to mmap with 22 (Invalid argument) Reported-by: David Ahern <[email protected]> Cc: Frederic Weisbecker <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Mike Galbraith <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Stephane Eranian <[email protected]> Cc: Tom Zanussi <[email protected]> LKML-Reference: <new-submission> Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/python.c')
0 files changed, 0 insertions, 0 deletions