From 410ca6b0df454f1513bf3074bf682fe26436c8ac Mon Sep 17 00:00:00 2001 From: Steven Rostedt Date: Mon, 7 Nov 2011 12:44:44 -0500 Subject: parse-event: Fix parsing of __print_flags() in TP_printk() 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 trace-cmd 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 Signed-off-by: Steven Rostedt --- parse-events.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/parse-events.c b/parse-events.c index 2dbd47b..ce95e6e 100644 --- a/parse-events.c +++ b/parse-events.c @@ -2167,6 +2167,11 @@ process_flags(struct event_format *event, struct print_arg *arg, char **tok) field = alloc_arg(); type = process_arg(event, field, &token); + + /* Handle operations in the first argument */ + while (type == EVENT_OP) + type = process_op(event, field, &token); + if (test_type_token(type, token, EVENT_DELIM, ",")) goto out_free; free_token(token); -- cgit v1.2.2