aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/parse-events.c
diff options
context:
space:
mode:
authorMarti Raudsepp <marti@juffo.org>2009-10-26 20:33:04 -0400
committerIngo Molnar <mingo@elte.hu>2009-10-27 09:52:31 -0400
commit85df6f683efa457440eb922272fd5a71aa022ad4 (patch)
tree320f1bfc4a706f71097a5e9eff37526fd27262cf /tools/perf/util/parse-events.c
parent5b2bb75a0d4b08cd16bc35ecd674f957fc3b0eb7 (diff)
perf tools: Notify user when unrecognized event is specified
Previously no indication was given about what went wrong. Signed-off-by: Marti Raudsepp <marti@juffo.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Paul Mackerras <paulus@samba.org> LKML-Reference: <03ec9ee96f17cef05424.1256603584@localhost> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/util/parse-events.c')
-rw-r--r--tools/perf/util/parse-events.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/util/parse-events.c b/tools/perf/util/parse-events.c
index b097570e9623..e9e6d5c0ae4a 100644
--- a/tools/perf/util/parse-events.c
+++ b/tools/perf/util/parse-events.c
@@ -678,6 +678,8 @@ parse_event_symbols(const char **str, struct perf_event_attr *attr)
678 if (ret != EVT_FAILED) 678 if (ret != EVT_FAILED)
679 goto modifier; 679 goto modifier;
680 680
681 fprintf(stderr, "invalid or unsupported event: '%s'\n", *str);
682 fprintf(stderr, "Run 'perf list' for a list of valid events\n");
681 return EVT_FAILED; 683 return EVT_FAILED;
682 684
683modifier: 685modifier: