aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/check-perf-trace.py
diff options
context:
space:
mode:
authorPekka Enberg <[email protected]>2009-11-08 18:01:06 +0200
committerIngo Molnar <[email protected]>2009-11-08 17:04:54 +0100
commitc10edee2e1716f8cf217cf52ed01ae4742fcdf3c (patch)
tree30d894124621ba13ea5e7e06050b99953a401b62 /tools/perf/scripts/python/check-perf-trace.py
parentdd77038d233d106f297b907bf51459dfb1099eb1 (diff)
perf tools: Fix permission checks
The perf_event_open() system call returns EACCES if the user is not root which results in a very confusing error message: $ perf record -A -a -f Error: perfcounter syscall returned with -1 (Permission denied) Fatal: No CONFIG_PERF_EVENTS=y kernel support configured? It turns out that's because perf tools are checking only for EPERM. Fix that up to get a much better error message: $ perf record -A -a -f Fatal: Permission error - are you root? Signed-off-by: Pekka Enberg <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Frederic Weisbecker <[email protected]> LKML-Reference: <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions