diff options
-rw-r--r-- | tools/perf/util/trace-event-parse.c | 6 |
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 | } |