aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/traceevent/event-parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/lib/traceevent/event-parse.c')
-rw-r--r--tools/lib/traceevent/event-parse.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/lib/traceevent/event-parse.c b/tools/lib/traceevent/event-parse.c
index c3bd294a63d1..575e75174087 100644
--- a/tools/lib/traceevent/event-parse.c
+++ b/tools/lib/traceevent/event-parse.c
@@ -1951,6 +1951,7 @@ process_op(struct event_format *event, struct print_arg *arg, char **tok)
1951 strcmp(token, "*") == 0 || 1951 strcmp(token, "*") == 0 ||
1952 strcmp(token, "^") == 0 || 1952 strcmp(token, "^") == 0 ||
1953 strcmp(token, "/") == 0 || 1953 strcmp(token, "/") == 0 ||
1954 strcmp(token, "%") == 0 ||
1954 strcmp(token, "<") == 0 || 1955 strcmp(token, "<") == 0 ||
1955 strcmp(token, ">") == 0 || 1956 strcmp(token, ">") == 0 ||
1956 strcmp(token, "<=") == 0 || 1957 strcmp(token, "<=") == 0 ||
@@ -3689,6 +3690,9 @@ eval_num_arg(void *data, int size, struct event_format *event, struct print_arg
3689 case '/': 3690 case '/':
3690 val = left / right; 3691 val = left / right;
3691 break; 3692 break;
3693 case '%':
3694 val = left % right;
3695 break;
3692 case '*': 3696 case '*':
3693 val = left * right; 3697 val = left * right;
3694 break; 3698 break;