Re: Re: [PATCH v2 00/16] perf: add memory access sampling support

2012-11-07 Thread Stephane Eranian
On Wed, Nov 7, 2012 at 3:53 PM, Masami Hiramatsu wrote: > (2012/11/07 5:52), Arnaldo Carvalho de Melo wrote: >> Em Mon, Nov 05, 2012 at 02:50:47PM +0100, Stephane Eranian escreveu: >>> Or if one is interested in the data view: >>> $ perf mem -t load rep --sort=symbol_daddr,cost >>> # Samples: 19K

Re: Re: [PATCH v2 00/16] perf: add memory access sampling support

2012-11-07 Thread Masami Hiramatsu
(2012/11/07 5:52), Arnaldo Carvalho de Melo wrote: > Em Mon, Nov 05, 2012 at 02:50:47PM +0100, Stephane Eranian escreveu: >> Or if one is interested in the data view: >> $ perf mem -t load rep --sort=symbol_daddr,cost >> # Samples: 19K of event 'cpu/mem-loads/pp' >> # Total cost : 1013994 >> # Sort

Re: [PATCH v2 00/16] perf: add memory access sampling support

2012-11-07 Thread Stephane Eranian
On Wed, Nov 7, 2012 at 8:38 AM, Namhyung Kim wrote: > Hi Arnaldo, > > On Tue, 6 Nov 2012 17:52:21 -0300, Arnaldo Carvalho de Melo wrote: >> Em Mon, Nov 05, 2012 at 02:50:47PM +0100, Stephane Eranian escreveu: >> [root@sandy acme]# perf mem -t load rep --stdio >> --sort=symbol,symbol_daddr,cost >>

Re: [PATCH v2 00/16] perf: add memory access sampling support

2012-11-06 Thread Namhyung Kim
Hi Arnaldo, On Tue, 6 Nov 2012 17:52:21 -0300, Arnaldo Carvalho de Melo wrote: > Em Mon, Nov 05, 2012 at 02:50:47PM +0100, Stephane Eranian escreveu: > [root@sandy acme]# perf mem -t load rep --stdio > --sort=symbol,symbol_daddr,cost > # Samples: 30 of event 'cpu/mem-loads/pp' > # Total cost : 6

Re: [PATCH v2 00/16] perf: add memory access sampling support

2012-11-06 Thread Arnaldo Carvalho de Melo
Em Mon, Nov 05, 2012 at 02:50:47PM +0100, Stephane Eranian escreveu: > Or if one is interested in the data view: > $ perf mem -t load rep --sort=symbol_daddr,cost > # Samples: 19K of event 'cpu/mem-loads/pp' > # Total cost : 1013994 > # Sort order : symbol_daddr,cost > # > # Overhead Samples

[PATCH v2 00/16] perf: add memory access sampling support

2012-11-05 Thread Stephane Eranian
This patch series had a new feature to the kernel perf_events interface and corresponding user level tool, perf. With this patch, it is possible to sample (not trace) memory accesses (load, store). For loads, the instruction and data addresses are captured along with the latency and data source. F