perf tools: Emit clearer message for sys_perf_event_open ENOENT return
authorArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 10 Jan 2011 15:36:24 +0000 (13:36 -0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 10 Jan 2011 15:36:24 +0000 (13:36 -0200)
commitaa7bc7ef73efc46d7c3a0e185eefaf85744aec98
tree638bfb5be868a450fd1802e672aa9e7ab9bb76c8
parent5a3446bc648d86a99a895e93d28d7df00bbbfb3c
perf tools: Emit clearer message for sys_perf_event_open ENOENT return

Improve sys_perf_event_open ENOENT return handling in top and record, just
like 5a3446b does for stat.

Cc: David Ahern <daahern@cisco.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Tom Zanussi <tzanussi@gmail.com>
LKML-Reference: <new-submission>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-record.c
tools/perf/builtin-top.c