summaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-stat.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2011-12-07 23:23:44 +0100
committerIngo Molnar <mingo@elte.hu>2011-12-07 23:23:44 +0100
commit167e33c32845a30368463dac5a4fe2be5edcc34a (patch)
tree761029012ce71a6a3e90226cb676f05367292d0e /tools/perf/builtin-stat.c
parent86b47c25494b824da655b95f6fdb4fdb3f17aa77 (diff)
parent6340cfed48c478cf67451ddcd2daa3438e642632 (diff)
downloadlinux-stable-167e33c32845a30368463dac5a4fe2be5edcc34a.tar.gz
linux-stable-167e33c32845a30368463dac5a4fe2be5edcc34a.tar.bz2
linux-stable-167e33c32845a30368463dac5a4fe2be5edcc34a.zip
Merge branch 'perf/urgent' of git://github.com/acmel/linux into perf/urgent
Diffstat (limited to 'tools/perf/builtin-stat.c')
-rw-r--r--tools/perf/builtin-stat.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/perf/builtin-stat.c b/tools/perf/builtin-stat.c
index 7d98676808d8..955930e0a5c3 100644
--- a/tools/perf/builtin-stat.c
+++ b/tools/perf/builtin-stat.c
@@ -463,7 +463,8 @@ 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, first) < 0) {
- if (errno == EINVAL || errno == ENOSYS || errno == ENOENT) {
+ if (errno == EINVAL || errno == ENOSYS ||
+ errno == ENOENT || errno == EOPNOTSUPP) {
if (verbose)
ui__warning("%s event is not supported by the kernel.\n",
event_name(counter));