aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/python.c
diff options
context:
space:
mode:
authorIngo Molnar <[email protected]>2011-04-27 02:06:33 +0000
committerIngo Molnar <[email protected]>2011-04-26 18:04:55 +0000
commitceb53fbf6dbb1df26d38379a262c6981fe73dd36 (patch)
tree128bc025a3b4a99c212d9c78ca3ff3b492d730af /tools/perf/util/python.c
parentperf tools: Accept case-insensitive symbolic event variants (diff)
downloadkernel-ceb53fbf6dbb1df26d38379a262c6981fe73dd36.tar.gz
kernel-ceb53fbf6dbb1df26d38379a262c6981fe73dd36.zip
perf stat: Fail more clearly when an invalid modifier is specified
Currently we fail without printing any error message on "perf stat -e task-clock-msecs". The reason is that the task-clock event is matched and the "-msecs" postfix is assumed to be an event modifier - but is not recognized. This patch changes the code to be more informative: $ perf stat -e task-clock-msecs true invalid event modifier: '-msecs' Run 'perf list' for a list of valid events and modifiers And restructures the return value of parse_event_modifier() to allow the printing of all variants of invalid event modifiers. Acked-by: Peter Zijlstra <[email protected]> Acked-by: Arnaldo Carvalho de Melo <[email protected]> Cc: Frederic Weisbecker <[email protected]> Link: http://lkml.kernel.org/n/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/util/python.c')
0 files changed, 0 insertions, 0 deletions