aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/trace-event-parse.c
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2009-10-14 15:43:43 -0400
committerIngo Molnar <mingo@elte.hu>2009-10-15 04:42:40 -0400
commitafdf1a404eed236d6f762ee44cc0f1dcc97206e0 (patch)
tree340ef136fa127171c9bc3a05d9a5fc68a33a1c00 /tools/perf/util/trace-event-parse.c
parentcda48461c7fb8431a99b7960480f5f42cc1a5324 (diff)
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 <srostedt@redhat.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> LKML-Reference: <20091014194400.330843045@goodmis.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/util/trace-event-parse.c')
-rw-r--r--tools/perf/util/trace-event-parse.c6
1 files changed, 6 insertions, 0 deletions
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,
2106 die("unknown op '%s'", arg->op.op); 2106 die("unknown op '%s'", arg->op.op);
2107 val = left == right; 2107 val = left == right;
2108 break; 2108 break;
2109 case '-':
2110 val = left - right;
2111 break;
2112 case '+':
2113 val = left + right;
2114 break;
2109 default: 2115 default:
2110 die("unknown op '%s'", arg->op.op); 2116 die("unknown op '%s'", arg->op.op);
2111 } 2117 }