[lkml]   [2012]   [Jan]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Patch in this message
    Subject[13/40] perf: Fix parsing of __print_flags() in TP_printk()
    3.0-stable review patch.  If anyone has any objections, please let me know.


    From: Steven Rostedt <>

    commit 49908a1b25d448d68fd26faca260e1850201575f 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 <>
    Signed-off-by: Steven Rostedt <>
    Signed-off-by: Greg Kroah-Hartman <>

    tools/perf/util/trace-event-parse.c | 2 ++
    1 file changed, 2 insertions(+)

    --- a/tools/perf/util/trace-event-parse.c
    +++ b/tools/perf/util/trace-event-parse.c
    @@ -1582,6 +1582,8 @@ process_symbols(struct event *event, str
    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;

     \ /
      Last update: 2012-01-11 00:27    [W:0.025 / U:19.512 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site