aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/rcutree_plugin.h
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2011-04-27 04:06:33 +0200
committerIngo Molnar <mingo@elte.hu>2011-04-26 20:04:55 +0200
commitceb53fbf6dbb1df26d38379a262c6981fe73dd36 (patch)
tree128bc025a3b4a99c212d9c78ca3ff3b492d730af /kernel/rcutree_plugin.h
parentb908debd4eef91471016138569f7a9e292be682e (diff)
downloadkernel_samsung_tuna-ceb53fbf6dbb1df26d38379a262c6981fe73dd36.zip
kernel_samsung_tuna-ceb53fbf6dbb1df26d38379a262c6981fe73dd36.tar.gz
kernel_samsung_tuna-ceb53fbf6dbb1df26d38379a262c6981fe73dd36.tar.bz2
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 'kernel/rcutree_plugin.h')
0 files changed, 0 insertions, 0 deletions