lkml.org 
[lkml]   [2011]   [Jul]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[RFC PATCH -tip 1/5] perf tools: handle '-' and '*' in trace parsing
From: Keiichi Kii <k-keiichi@bx.jp.nec.com>

add '-' and '*' to parsing in trace parsing.

Signed-off-by: Keiichi Kii <k-keiichi@bx.jp.nec.com>
---

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 0a7ed5b..447f7c0 100644
--- a/tools/perf/util/trace-event-parse.c
+++ b/tools/perf/util/trace-event-parse.c
@@ -2162,6 +2162,12 @@ static unsigned long long eval_num_arg(void *data, int size,
case '+':
val = left + right;
break;
+ case '*':
+ val = left * right;
+ break;
+ case '/':
+ val = left / right;
+ break;
default:
die("unknown op '%s'", arg->op.op);
}



\
 
 \ /
  Last update: 2011-07-18 23:49    [W:0.133 / U:0.232 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site