diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/perf/builtin-stat.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/perf/builtin-stat.c b/tools/perf/builtin-stat.c index c8b535bc27bd..602c3c96fa1e 100644 --- a/tools/perf/builtin-stat.c +++ b/tools/perf/builtin-stat.c | |||
@@ -377,8 +377,12 @@ 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 || errno == ENOENT) | 380 | if (errno == EINVAL || errno == ENOSYS || errno == ENOENT) { |
381 | if (verbose) | ||
382 | ui__warning("%s event is not supported by the kernel.\n", | ||
383 | event_name(counter)); | ||
381 | continue; | 384 | continue; |
385 | } | ||
382 | 386 | ||
383 | if (errno == EPERM || errno == EACCES) { | 387 | if (errno == EPERM || errno == EACCES) { |
384 | error("You may not have permission to collect %sstats.\n" | 388 | error("You may not have permission to collect %sstats.\n" |