Re: [RFC/PATCH 2/3] perf script: Print comm, fork and exit events also

2013-11-17 Thread David Ahern
On 11/17/13, 8:00 PM, Namhyung Kim wrote: @@ -578,6 +579,106 @@ static int process_attr(struct perf_tool *tool, union perf_event *event, return perf_evsel__check_attr(evsel, scr->session); } +static int process_comm_event(struct perf_tool *tool, + union

[RFC/PATCH 2/3] perf script: Print comm, fork and exit events also

2013-11-17 Thread Namhyung Kim
If --show-task option is given, also print internal COMM, FORK and EXIT events. It would be helpful for debugging. Suggested-by: Frederic Weisbecker Signed-off-by: Namhyung Kim --- tools/perf/Documentation/perf-script.txt | 3 + tools/perf/builtin-script.c | 110

[RFC/PATCH 2/3] perf script: Print comm, fork and exit events also

2013-11-17 Thread Namhyung Kim
If --show-task option is given, also print internal COMM, FORK and EXIT events. It would be helpful for debugging. Suggested-by: Frederic Weisbecker fweis...@gmail.com Signed-off-by: Namhyung Kim namhy...@kernel.org --- tools/perf/Documentation/perf-script.txt | 3 +

Re: [RFC/PATCH 2/3] perf script: Print comm, fork and exit events also

2013-11-17 Thread David Ahern
On 11/17/13, 8:00 PM, Namhyung Kim wrote: @@ -578,6 +579,106 @@ static int process_attr(struct perf_tool *tool, union perf_event *event, return perf_evsel__check_attr(evsel, scr-session); } +static int process_comm_event(struct perf_tool *tool, + union