]> Git Repo - linux.git/commitdiff
perf: Fix parsing of __print_flags() in TP_printk()
authorSteven Rostedt <[email protected]>
Fri, 4 Nov 2011 20:32:25 +0000 (16:32 -0400)
committerSteven Rostedt <[email protected]>
Mon, 5 Dec 2011 18:28:47 +0000 (13:28 -0500)
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.

Cc: [email protected]
Reported-by: Andrew Vagin <[email protected]>
Signed-off-by: Steven Rostedt <[email protected]>
tools/perf/util/trace-event-parse.c

index 0a7ed5b5e281c88b321de87ced66a3d29ebb003d..6c164dc9ee957dbf3df642f712b2fdc1485d2dc6 100644 (file)
@@ -1537,6 +1537,8 @@ process_flags(struct event *event, struct print_arg *arg, char **tok)
        field = malloc_or_die(sizeof(*field));
 
        type = process_arg(event, field, &token);
+       while (type == EVENT_OP)
+               type = process_op(event, field, &token);
        if (test_type_token(type, token, EVENT_DELIM, ","))
                goto out_free;
 
This page took 0.057286 seconds and 4 git commands to generate.