aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/perf/builtin-stat.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/perf/builtin-stat.c b/tools/perf/builtin-stat.c
index 9e596ab98d05..c8b535bc27bd 100644
--- a/tools/perf/builtin-stat.c
+++ b/tools/perf/builtin-stat.c
@@ -377,7 +377,7 @@ static int run_perf_stat(int argc __used, const char **argv)
377 377
378 list_for_each_entry(counter, &evsel_list->entries, node) { 378 list_for_each_entry(counter, &evsel_list->entries, node) {
379 if (create_perf_stat_counter(counter) < 0) { 379 if (create_perf_stat_counter(counter) < 0) {
380 if (errno == EINVAL || errno == ENOSYS) 380 if (errno == EINVAL || errno == ENOSYS || errno == ENOENT)
381 continue; 381 continue;
382 382
383 if (errno == EPERM || errno == EACCES) { 383 if (errno == EPERM || errno == EACCES) {
@@ -385,8 +385,6 @@ static int run_perf_stat(int argc __used, const char **argv)
385 "\t Consider tweaking" 385 "\t Consider tweaking"
386 " /proc/sys/kernel/perf_event_paranoid or running as root.", 386 " /proc/sys/kernel/perf_event_paranoid or running as root.",
387 system_wide ? "system-wide " : ""); 387 system_wide ? "system-wide " : "");
388 } else if (errno == ENOENT) {
389 error("%s event is not supported. ", event_name(counter));
390 } else { 388 } else {
391 error("open_counter returned with %d (%s). " 389 error("open_counter returned with %d (%s). "
392 "/bin/dmesg may provide additional information.\n", 390 "/bin/dmesg may provide additional information.\n",