Re: [PATCH 10/15] perf ftrace: Add 'show' sub-command

2013-05-15 Thread Namhyung Kim
On Wed, 15 May 2013 23:21:08 +0200, Jiri Olsa wrote: > On Tue, May 14, 2013 at 07:13:54PM +0900, Namhyung Kim wrote: >> +static int process_sample_show(struct perf_tool *tool, >> + union perf_event * event __maybe_unused, >> + struct perf_sample *

Re: [PATCH 10/15] perf ftrace: Add 'show' sub-command

2013-05-15 Thread Jiri Olsa
On Tue, May 14, 2013 at 07:13:54PM +0900, Namhyung Kim wrote: > From: Namhyung Kim > SNIP > + > +static LIST_HEAD(ftrace_cpu_buffers); > + > +static int process_sample_show(struct perf_tool *tool, > +union perf_event * event __maybe_unused, > +

[PATCH 10/15] perf ftrace: Add 'show' sub-command

2013-05-14 Thread Namhyung Kim
From: Namhyung Kim The ftrace show subcommand is for viewing recorded ftrace files. It enters perf.data.dir directory and open perf.header file to find out necessary information. And then read out per-cpu trace records using kbuffer helper and print them to stdout in time order. It only shows