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 u

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 ~/t

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

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 exact

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 sample

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

2015-05-10 Thread Kan Liang
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 samples which the kernel dropped is stored in total_lost_samples. When the perce