perf list: Show error if tracepoints not available
authorPekka Enberg <penberg@kernel.org>
Tue, 15 Oct 2013 20:07:27 +0000 (23:07 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 21 Oct 2013 20:33:22 +0000 (17:33 -0300)
commitf11cfc6f294dbd83b0d58037404df2bd16066238
treefd157c36e6cd7a75bb4ccf005de5fc44900ae864
parent243be3dd7c14454899e51334a6d66d29a41ae6ab
perf list: Show error if tracepoints not available

Tracepoints are not visible in "perf list" on Fedora 19 because regular
users have no permission to /sys/kernel/debug by default. Show an error
message so that the user knows about it instead of assuming that
tracepoints are not supported on the system.

Signed-off-by: Pekka Enberg <penberg@kernel.org>
Acked-by: Ingo Molnar <mingo@kernel.org>
Cc: Ingo Molnar <mingo@kernel.org>
Link: http://lkml.kernel.org/r/1381867647-8594-1-git-send-email-penberg@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/parse-events.c