Messages in this thread Patch in this message | | | Subject | [PATCH 1 of 2] perf tools: notify user when unrecognized event is specified | Date | Tue, 27 Oct 2009 00:33:04 -0000 | From | Marti Raudsepp <> |
| |
Previously no indication was given about what went wrong.
Signed-off-by: Marti Raudsepp <marti@juffo.org>
diff --git a/tools/perf/util/parse-events.c b/tools/perf/util/parse-events.c --- a/tools/perf/util/parse-events.c +++ b/tools/perf/util/parse-events.c @@ -677,6 +677,8 @@ if (ret != EVT_FAILED) goto modifier; + fprintf(stderr, "invalid or unsupported event: '%s'\n", *str); + fprintf(stderr, "Run 'perf list' for a list of valid events\n"); return EVT_FAILED; modifier:
| |