diff options
author | Steven Rostedt <srostedt@redhat.com> | 2012-04-06 02:48:04 +0400 |
---|---|---|
committer | Frederic Weisbecker <fweisbec@gmail.com> | 2012-04-25 15:35:41 +0400 |
commit | 2e7a5fc8d40be9654f589dad467515c1688ccf6b (patch) | |
tree | 4e13a3bf5cc451f734538a01bfb8f3b80475643f /tools/lib | |
parent | b48285980de2070948c8ac73629c605ad9202589 (diff) | |
download | linux-2e7a5fc8d40be9654f589dad467515c1688ccf6b.tar.xz |
parse-events: Allow '*' and '/' operations in TP_printk
Add multiply and divide operations in the printk format.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Arnaldo Carvalho de Melo <acme@infradead.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Arun Sharma <asharma@fb.com>
Cc: Namhyung Kim <namhyung.kim@lge.com>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Diffstat (limited to 'tools/lib')
-rw-r--r-- | tools/lib/traceevent/event-parse.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/lib/traceevent/event-parse.c b/tools/lib/traceevent/event-parse.c index 476626af7317..876b2720253d 100644 --- a/tools/lib/traceevent/event-parse.c +++ b/tools/lib/traceevent/event-parse.c @@ -3130,6 +3130,12 @@ eval_num_arg(void *data, int size, struct event_format *event, struct print_arg case '+': val = left + right; break; + case '/': + val = left / right; + break; + case '*': + val = left * right; + break; default: die("unknown op '%s'", arg->op.op); } |