linux/tools/perf
Pekka Enberg c10edee2e1 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 <penberg@cs.helsinki.fi>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
LKML-Reference: <1257696066-4046-1-git-send-email-penberg@cs.helsinki.fi>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2009-11-08 17:04:54 +01:00
..
Documentation
util perf tools: Fix compatibility with libelf 0.8 and autodetect 2009-10-25 17:09:14 +01:00
.gitignore
builtin-annotate.c
builtin-help.c
builtin-list.c
builtin-record.c perf tools: Fix permission checks 2009-11-08 17:04:54 +01:00
builtin-report.c
builtin-sched.c perf tools: Fix const char type propagation 2009-10-12 08:35:00 +02:00
builtin-stat.c perf: Propagate term signal to child 2009-10-04 19:37:39 +02:00
builtin-timechart.c perf timechart: Fix the wakeup-arrows that point to non-visible processes 2009-10-20 03:39:16 +02:00
builtin-top.c perf tools: Fix permission checks 2009-11-08 17:04:54 +01:00
builtin-trace.c perf trace: Remove unused code in builtin-trace.c 2009-10-06 12:02:33 +02:00
builtin.h
command-list.txt
CREDITS
design.txt perf_event: Provide vmalloc() based mmap() backing 2009-10-06 14:21:50 +02:00
Makefile perf tools: Remove -Wcast-align 2009-10-26 09:43:06 +01:00
perf.c
perf.h