From: Steven Rostedt Date: Wed, 14 Oct 2009 19:43:43 +0000 (-0400) Subject: perf tools: Handle - and + in parsing trace print format X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=afdf1a404eed236d6f762ee44cc0f1dcc97206e0;p=openwrt%2Fstaging%2Fblogic.git perf tools: Handle - and + in parsing trace print format The opterators '-' and '+' are not handled in the trace print format. To do: '++' and '--'. Signed-off-by: Steven Rostedt Cc: Peter Zijlstra Cc: Frederic Weisbecker Cc: Arnaldo Carvalho de Melo LKML-Reference: <20091014194400.330843045@goodmis.org> Signed-off-by: Ingo Molnar --- diff --git a/tools/perf/util/trace-event-parse.c b/tools/perf/util/trace-event-parse.c index fde1a434d630..2d424ff50ec2 100644 --- a/tools/perf/util/trace-event-parse.c +++ b/tools/perf/util/trace-event-parse.c @@ -2106,6 +2106,12 @@ static unsigned long long eval_num_arg(void *data, int size, die("unknown op '%s'", arg->op.op); val = left == right; break; + case '-': + val = left - right; + break; + case '+': + val = left + right; + break; default: die("unknown op '%s'", arg->op.op); }