Re: [PATCH 09/22] tools lib traceevent: Add sched_switch plugin

From: Steven Rostedt
Date: Thu Nov 21 2013 - 08:19:06 EST


On Thu, 21 Nov 2013 12:01:07 +0100
Jiri Olsa <jolsa@xxxxxxxxxx> wrote:

> Backporting sched_switch plugin.
>
> Backported from Steven Rostedt's trace-cmd repo (HEAD 0f2c2fb):
> git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/trace-cmd.git
>
> This plugin adds fields resolving for
> sched:sched_switch tracepoint event.
>
> The diff of 'perf script' output generated by old and new code:
> (data was generated by 'perf record -e sched:sched_switch -a')
>
> --- script.sched_switch.old
> +++ script.sched_switch.new
> - perf 577 [002] 30965.311852: sched:sched_switch: prev_comm=perf prev_pid=577 prev_prio=120 prev_state=S ==> next_comm=swapper/2 next_pid=0 next_prio=120
> + perf 577 [002] 30965.311852: sched:sched_switch: perf:577 [120] S ==> swapper/2:0 [120]
>
> Signed-off-by: Jiri Olsa <jolsa@xxxxxxxxxx>
> Cc: Corey Ashford <cjashfor@xxxxxxxxxxxxxxxxxx>
> Cc: Frederic Weisbecker <fweisbec@xxxxxxxxx>
> Cc: Ingo Molnar <mingo@xxxxxxx>
> Cc: Namhyung Kim <namhyung@xxxxxxxxxx>
> Cc: Paul Mackerras <paulus@xxxxxxxxx>
> Cc: Peter Zijlstra <a.p.zijlstra@xxxxxxxxx>
> Cc: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>
> Cc: Steven Rostedt <rostedt@xxxxxxxxxxx>

Signed-off-by: Steven Rostedt <rostedt@xxxxxxxxxxx>

-- Steve

> Cc: David Ahern <dsahern@xxxxxxxxx>
> ---
> tools/lib/traceevent/Makefile | 1 +
> tools/lib/traceevent/plugin_sched_switch.c | 148 +++++++++++++++++++++++++++++
> 2 files changed, 149 insertions(+)
> create mode 100644 tools/lib/traceevent/plugin_sched_switch.c
>
--
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/