Skip to content

Commit 6bdf07f

Browse files
Steven Rostedtgregkh
authored andcommitted
perf: Fix parsing of __print_flags() in TP_printk()
commit d06c27b upstream. A update is made to the sched:sched_switch event that adds some logic to the first parameter of the __print_flags() that shows the state of tasks. This change cause perf to fail parsing the flags. A simple fix is needed to have the parser be able to process ops within the argument. Reported-by: Andrew Vagin <avagin@openvz.org> Signed-off-by: Steven Rostedt <rostedt@goodmis.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
1 parent 491d3a9 commit 6bdf07f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎tools/perf/util/trace-event-parse.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1537,6 +1537,8 @@ process_flags(struct event *event, struct print_arg *arg, char **tok)
15371537
field = malloc_or_die(sizeof(*field));
15381538

15391539
type = process_arg(event, field, &token);
1540+
while (type == EVENT_OP)
1541+
type = process_op(event, field, &token);
15401542
if (test_type_token(type, token, EVENT_DELIM, ","))
15411543
goto out_free;
15421544

0 commit comments

Comments
 (0)