Re: [PATCH] perf/tools : remove default system_wide in sched record

2017-10-25 Thread chengjian (D)
On 2017/10/25 10:23, Namhyung Kim wrote: On Tue, Oct 24, 2017 at 10:46:44AM -0300, Arnaldo Carvalho de Melo wrote: Em Tue, Oct 24, 2017 at 03:45:34PM +0800, Cheng Jian escreveu: When running perf sched record, there is a bug. It's system_wide when we specify a command line. Humm, isn't this

Re: [PATCH] perf/tools : remove default system_wide in sched record

2017-10-24 Thread Namhyung Kim
On Tue, Oct 24, 2017 at 10:46:44AM -0300, Arnaldo Carvalho de Melo wrote: > Em Tue, Oct 24, 2017 at 03:45:34PM +0800, Cheng Jian escreveu: > > When running perf sched record, there is a bug. > > > > It's system_wide when we specify a command line. > > Humm, isn't this because if you trace just a

Re: [PATCH] perf/tools : remove default system_wide in sched record

2017-10-24 Thread Arnaldo Carvalho de Melo
Em Tue, Oct 24, 2017 at 03:45:34PM +0800, Cheng Jian escreveu: > When running perf sched record, there is a bug. > > It's system_wide when we specify a command line. Humm, isn't this because if you trace just a workload you will miss the sched-in events? Perhaps with PERF_RECORD_SWITCH we can so