diff options
Diffstat (limited to 'tools/perf/util/trace-event-parse.c')
-rw-r--r-- | tools/perf/util/trace-event-parse.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/perf/util/trace-event-parse.c b/tools/perf/util/trace-event-parse.c index 0a7ed5b5e28..bf54c48871d 100644 --- a/tools/perf/util/trace-event-parse.c +++ b/tools/perf/util/trace-event-parse.c | |||
@@ -1537,6 +1537,8 @@ process_flags(struct event *event, struct print_arg *arg, char **tok) | |||
1537 | field = malloc_or_die(sizeof(*field)); | 1537 | field = malloc_or_die(sizeof(*field)); |
1538 | 1538 | ||
1539 | type = process_arg(event, field, &token); | 1539 | type = process_arg(event, field, &token); |
1540 | while (type == EVENT_OP) | ||
1541 | type = process_op(event, field, &token); | ||
1540 | if (test_type_token(type, token, EVENT_DELIM, ",")) | 1542 | if (test_type_token(type, token, EVENT_DELIM, ",")) |
1541 | goto out_free; | 1543 | goto out_free; |
1542 | 1544 | ||
@@ -1580,6 +1582,8 @@ process_symbols(struct event *event, struct print_arg *arg, char **tok) | |||
1580 | field = malloc_or_die(sizeof(*field)); | 1582 | field = malloc_or_die(sizeof(*field)); |
1581 | 1583 | ||
1582 | type = process_arg(event, field, &token); | 1584 | type = process_arg(event, field, &token); |
1585 | while (type == EVENT_OP) | ||
1586 | type = process_op(event, field, &token); | ||
1583 | if (test_type_token(type, token, EVENT_DELIM, ",")) | 1587 | if (test_type_token(type, token, EVENT_DELIM, ",")) |
1584 | goto out_free; | 1588 | goto out_free; |
1585 | 1589 | ||