diff options
-rw-r--r-- | tools/perf/util/parse-events.c | 2 |
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 | ||
683 | modifier: | 685 | modifier: |