Re: [PATCH] event: fix TP_printk() argument in sched_switch

From: avagin@xxxxxxxxx
Date: Thu Nov 03 2011 - 17:36:34 EST


Hi Steve,


Can you try this patch on perf. It's untested (not even compiled tested)
It looks like it works now. Thanks.

-- Steve

diff --git a/tools/perf/util/trace-event-parse.c b/tools/perf/util/trace-event-parse.c
index 0a7ed5b..6c164dc 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)
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;



--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/