From e16e926f67c2cd5e9b32827b560ccd4571787c77 Mon Sep 17 00:00:00 2001 From: David Ahern Date: Fri, 29 Apr 2011 16:04:15 -0600 Subject: [PATCH] --- yaml --- r: 245490 b: refs/heads/master c: c63ca0c01d73563d4e2ab174bb3dd1e5efb907e6 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/tools/perf/builtin-stat.c | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 13498d369de7..1e68d7bbb39d 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 947b4ad1d198b7303ecc961f4939a331be0c48f0 +refs/heads/master: c63ca0c01d73563d4e2ab174bb3dd1e5efb907e6 diff --git a/trunk/tools/perf/builtin-stat.c b/trunk/tools/perf/builtin-stat.c index c8b535bc27bd..602c3c96fa1e 100644 --- a/trunk/tools/perf/builtin-stat.c +++ b/trunk/tools/perf/builtin-stat.c @@ -377,8 +377,12 @@ static int run_perf_stat(int argc __used, const char **argv) list_for_each_entry(counter, &evsel_list->entries, node) { if (create_perf_stat_counter(counter) < 0) { - if (errno == EINVAL || errno == ENOSYS || errno == ENOENT) + if (errno == EINVAL || errno == ENOSYS || errno == ENOENT) { + if (verbose) + ui__warning("%s event is not supported by the kernel.\n", + event_name(counter)); continue; + } if (errno == EPERM || errno == EACCES) { error("You may not have permission to collect %sstats.\n"