[PATCH 1 of 2] perf tools: notify user when unrecognized event isspecified

From: Marti Raudsepp
Date: Mon Oct 26 2009 - 20:33:40 EST


Previously no indication was given about what went wrong.

Signed-off-by: Marti Raudsepp <marti@xxxxxxxxx>

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:
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/