diff options
author | Ingo Molnar <mingo@elte.hu> | 2011-04-27 04:06:33 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2011-04-26 20:04:55 +0200 |
commit | ceb53fbf6dbb1df26d38379a262c6981fe73dd36 (patch) | |
tree | 128bc025a3b4a99c212d9c78ca3ff3b492d730af /crypto/gcm.c | |
parent | b908debd4eef91471016138569f7a9e292be682e (diff) | |
download | linux-ceb53fbf6dbb1df26d38379a262c6981fe73dd36.tar.gz linux-ceb53fbf6dbb1df26d38379a262c6981fe73dd36.tar.bz2 linux-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 <a.p.zijlstra@chello.nl>
Acked-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Link: http://lkml.kernel.org/n/tip-wlaw3dvz1ly6wple8l52cfca@git.kernel.org
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'crypto/gcm.c')
0 files changed, 0 insertions, 0 deletions