Re: [PATCH V9 8/8] perf tools: handle PERF_RECORD_LOST_SAMPLES

2015-05-12 Thread Arnaldo Carvalho de Melo
Em Tue, May 12, 2015 at 02:43:44PM +0200, Peter Zijlstra escreveu: > On Mon, May 11, 2015 at 06:27:58PM -0300, Arnaldo Carvalho de Melo wrote: > > I disagree, since the support is there, we need to have it in > > hists->events_stats[PERF_RECORD_LOST_SAMPLES]. > > But that can be done in a follow

Re: [PATCH V9 8/8] perf tools: handle PERF_RECORD_LOST_SAMPLES

2015-05-12 Thread Peter Zijlstra
On Mon, May 11, 2015 at 06:27:58PM -0300, Arnaldo Carvalho de Melo wrote: > Em Mon, May 11, 2015 at 08:40:56PM +, Liang, Kan escreveu: > > > Em Sun, May 10, 2015 at 03:13:15PM -0400, Kan Liang escreveu: > > > > $ perf record -e '{cycles:p,instructions:p}' -c 20003 --no-time > > > > ~/tchain

Re: [PATCH V9 8/8] perf tools: handle PERF_RECORD_LOST_SAMPLES

2015-05-12 Thread Peter Zijlstra
On Mon, May 11, 2015 at 06:27:58PM -0300, Arnaldo Carvalho de Melo wrote: Em Mon, May 11, 2015 at 08:40:56PM +, Liang, Kan escreveu: Em Sun, May 10, 2015 at 03:13:15PM -0400, Kan Liang escreveu: $ perf record -e '{cycles:p,instructions:p}' -c 20003 --no-time ~/tchain ~/tchain [perf

Re: [PATCH V9 8/8] perf tools: handle PERF_RECORD_LOST_SAMPLES

2015-05-12 Thread Arnaldo Carvalho de Melo
Em Tue, May 12, 2015 at 02:43:44PM +0200, Peter Zijlstra escreveu: On Mon, May 11, 2015 at 06:27:58PM -0300, Arnaldo Carvalho de Melo wrote: I disagree, since the support is there, we need to have it in hists-events_stats[PERF_RECORD_LOST_SAMPLES]. But that can be done in a follow up

Re: [PATCH V9 8/8] perf tools: handle PERF_RECORD_LOST_SAMPLES

2015-05-11 Thread Arnaldo Carvalho de Melo
Em Mon, May 11, 2015 at 08:40:56PM +, Liang, Kan escreveu: > > Em Sun, May 10, 2015 at 03:13:15PM -0400, Kan Liang escreveu: > > > $ perf record -e '{cycles:p,instructions:p}' -c 20003 --no-time > > > ~/tchain ~/tchain [perf record: Woken up 148 times to write data] > > > [perf record:

RE: [PATCH V9 8/8] perf tools: handle PERF_RECORD_LOST_SAMPLES

2015-05-11 Thread Liang, Kan
> > Em Sun, May 10, 2015 at 03:13:15PM -0400, Kan Liang escreveu: > > From: Kan Liang > > > > This patch modified the perf tool to handle the new RECORD type, > > PERF_RECORD_LOST_SAMPLES. > > The number of lost-sample events is stored in > > .nr_events[PERF_RECORD_LOST_SAMPLES]. While the

Re: [PATCH V9 8/8] perf tools: handle PERF_RECORD_LOST_SAMPLES

2015-05-11 Thread Arnaldo Carvalho de Melo
Em Sun, May 10, 2015 at 03:13:15PM -0400, Kan Liang escreveu: > From: Kan Liang > > This patch modified the perf tool to handle the new RECORD type, > PERF_RECORD_LOST_SAMPLES. > The number of lost-sample events is stored in > .nr_events[PERF_RECORD_LOST_SAMPLES]. While the exact number of

Re: [PATCH V9 8/8] perf tools: handle PERF_RECORD_LOST_SAMPLES

2015-05-11 Thread Arnaldo Carvalho de Melo
Em Sun, May 10, 2015 at 03:13:15PM -0400, Kan Liang escreveu: From: Kan Liang kan.li...@intel.com This patch modified the perf tool to handle the new RECORD type, PERF_RECORD_LOST_SAMPLES. The number of lost-sample events is stored in .nr_events[PERF_RECORD_LOST_SAMPLES]. While the exact

Re: [PATCH V9 8/8] perf tools: handle PERF_RECORD_LOST_SAMPLES

2015-05-11 Thread Arnaldo Carvalho de Melo
Em Mon, May 11, 2015 at 08:40:56PM +, Liang, Kan escreveu: Em Sun, May 10, 2015 at 03:13:15PM -0400, Kan Liang escreveu: $ perf record -e '{cycles:p,instructions:p}' -c 20003 --no-time ~/tchain ~/tchain [perf record: Woken up 148 times to write data] [perf record: Captured and wrote

RE: [PATCH V9 8/8] perf tools: handle PERF_RECORD_LOST_SAMPLES

2015-05-11 Thread Liang, Kan
Em Sun, May 10, 2015 at 03:13:15PM -0400, Kan Liang escreveu: From: Kan Liang kan.li...@intel.com This patch modified the perf tool to handle the new RECORD type, PERF_RECORD_LOST_SAMPLES. The number of lost-sample events is stored in .nr_events[PERF_RECORD_LOST_SAMPLES]. While the