Re: [PATCH 1/1] perf, tool: partial callgrap and time support in perf record

2015-03-18 Thread Andi Kleen
> > The answer is no: it solves a different problem. Group read > > is just fine granuality counting. It cannot be used > > to sample for multiple events in parallel. > > But group read disables sampling for non-leader events so the number > of total samples should be small, no? Yes it's smaller

Re: [PATCH 1/1] perf, tool: partial callgrap and time support in perf record

2015-03-18 Thread Namhyung Kim
Hi Andi, (Add Jiri to CC) On Mon, Mar 16, 2015 at 01:48:26PM -0700, Andi Kleen wrote: > On Mon, Mar 16, 2015 at 08:35:30PM +, Liang, Kan wrote: > > > On Fri, Mar 13, 2015 at 02:18:07AM +, kan.li...@intel.com wrote: > > > > From: Kan Liang > > > > > > > > When multiple events are sampled

Re: [PATCH 1/1] perf, tool: partial callgrap and time support in perf record

2015-03-16 Thread Andi Kleen
On Mon, Mar 16, 2015 at 08:35:30PM +, Liang, Kan wrote: > > > > > > Hi Kan, > > > > On Fri, Mar 13, 2015 at 02:18:07AM +, kan.li...@intel.com wrote: > > > From: Kan Liang > > > > > > When multiple events are sampled it may not be needed to collect > > > callgraphs for all of them. The

RE: [PATCH 1/1] perf, tool: partial callgrap and time support in perf record

2015-03-16 Thread Liang, Kan
> > Hi Kan, > > On Fri, Mar 13, 2015 at 02:18:07AM +, kan.li...@intel.com wrote: > > From: Kan Liang > > > > When multiple events are sampled it may not be needed to collect > > callgraphs for all of them. The sample sites are usually nearby, and > > it's enough to collect the callgraphs o

Re: [PATCH 1/1] perf, tool: partial callgrap and time support in perf record

2015-03-15 Thread Namhyung Kim
Hi Kan, On Fri, Mar 13, 2015 at 02:18:07AM +, kan.li...@intel.com wrote: > From: Kan Liang > > When multiple events are sampled it may not be needed to collect > callgraphs for all of them. The sample sites are usually nearby, and > it's enough to collect the callgraphs on a reference event