Re: [RFC/PATCH] perf sched: Implement 'perf sched runtime' command

2015-08-25 Thread David Ahern
On 8/25/15 1:07 AM, Namhyung Kim wrote: Hi David, On Mon, Aug 24, 2015 at 11:19:44PM -0700, David Ahern wrote: On 8/24/15 11:11 PM, Namhyung Kim wrote: +static int perf_sched__read_runtime_events(struct perf_sched *sched) +{ + const struct perf_evsel_str_handler handlers[] = { +

Re: [RFC/PATCH] perf sched: Implement 'perf sched runtime' command

2015-08-25 Thread Namhyung Kim
Hi David, On Mon, Aug 24, 2015 at 11:19:44PM -0700, David Ahern wrote: > On 8/24/15 11:11 PM, Namhyung Kim wrote: > > > >+static int perf_sched__read_runtime_events(struct perf_sched *sched) > >+{ > >+const struct perf_evsel_str_handler handlers[] = { > >+{ "sched:sched_switch",

Re: [RFC/PATCH] perf sched: Implement 'perf sched runtime' command

2015-08-25 Thread David Ahern
On 8/24/15 11:11 PM, Namhyung Kim wrote: +static int perf_sched__read_runtime_events(struct perf_sched *sched) +{ + const struct perf_evsel_str_handler handlers[] = { + { "sched:sched_switch", process_sched_switch_event, }, + {

[RFC/PATCH] perf sched: Implement 'perf sched runtime' command

2015-08-25 Thread Namhyung Kim
Currently 'perf sched record' commandsrecords various task stat info but other perf sched commands don't use them. This is a very simple implementation of showing those info to users. $ sudo perf sched record -a sleep 1 [ perf record: Woken up 1 times to write data ] [ perf record:

Re: [RFC/PATCH] perf sched: Implement 'perf sched runtime' command

2015-08-25 Thread David Ahern
On 8/25/15 1:07 AM, Namhyung Kim wrote: Hi David, On Mon, Aug 24, 2015 at 11:19:44PM -0700, David Ahern wrote: On 8/24/15 11:11 PM, Namhyung Kim wrote: +static int perf_sched__read_runtime_events(struct perf_sched *sched) +{ + const struct perf_evsel_str_handler handlers[] = { +

Re: [RFC/PATCH] perf sched: Implement 'perf sched runtime' command

2015-08-25 Thread David Ahern
On 8/24/15 11:11 PM, Namhyung Kim wrote: +static int perf_sched__read_runtime_events(struct perf_sched *sched) +{ + const struct perf_evsel_str_handler handlers[] = { + { sched:sched_switch, process_sched_switch_event, }, + {

Re: [RFC/PATCH] perf sched: Implement 'perf sched runtime' command

2015-08-25 Thread Namhyung Kim
Hi David, On Mon, Aug 24, 2015 at 11:19:44PM -0700, David Ahern wrote: On 8/24/15 11:11 PM, Namhyung Kim wrote: +static int perf_sched__read_runtime_events(struct perf_sched *sched) +{ +const struct perf_evsel_str_handler handlers[] = { +{ sched:sched_switch,

[RFC/PATCH] perf sched: Implement 'perf sched runtime' command

2015-08-25 Thread Namhyung Kim
Currently 'perf sched record' commandsrecords various task stat info but other perf sched commands don't use them. This is a very simple implementation of showing those info to users. $ sudo perf sched record -a sleep 1 [ perf record: Woken up 1 times to write data ] [ perf record: