diff options
Diffstat (limited to 'tools/perf/builtin-top.c')
-rw-r--r-- | tools/perf/builtin-top.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/perf/builtin-top.c b/tools/perf/builtin-top.c index 935fc4fd878e..fc1273e976c5 100644 --- a/tools/perf/builtin-top.c +++ b/tools/perf/builtin-top.c | |||
@@ -870,6 +870,12 @@ try_again: | |||
870 | goto try_again; | 870 | goto try_again; |
871 | } | 871 | } |
872 | 872 | ||
873 | if (err == ENOENT) { | ||
874 | ui__warning("The %s event is not supported.\n", | ||
875 | event_name(counter)); | ||
876 | goto out_err; | ||
877 | } | ||
878 | |||
873 | ui__warning("The sys_perf_event_open() syscall " | 879 | ui__warning("The sys_perf_event_open() syscall " |
874 | "returned with %d (%s). /bin/dmesg " | 880 | "returned with %d (%s). /bin/dmesg " |
875 | "may provide additional information.\n" | 881 | "may provide additional information.\n" |