mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
perf: Fix parsing of __print_flags() in TP_printk()
commit 49908a1b25
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>
(cherry picked from commit 2431496fbdd142ccc83138d94f3f510a36ce9270)
This commit is contained in:
parent
6aaeca8d2a
commit
d1504fec5f
1 changed files with 2 additions and 0 deletions
|
@ -1590,6 +1590,8 @@ process_symbols(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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue