Re: [PATCH v2] perf record: Synthesize COMM event for a command line workload

2015-09-22 Thread Namhyung Kim
On Wed, Sep 23, 2015 at 12:09:20AM -0300, Arnaldo Carvalho de Melo wrote: > Le 23 sept. 2015 12:04 AM, "Namhyung Kim" a écrit : > > > > Hi Arnaldo, > > > > On Tue, Sep 22, 2015 at 04:48:25PM -0300, Arnaldo Carvalho de Melo wrote: > > > Humm, I think it is working by accident, as you're not allocat

Re: [PATCH v2] perf record: Synthesize COMM event for a command line workload

2015-09-22 Thread Namhyung Kim
Hi Arnaldo, On Tue, Sep 22, 2015 at 04:48:25PM -0300, Arnaldo Carvalho de Melo wrote: > Em Tue, Sep 22, 2015 at 04:25:34PM -0300, Arnaldo Carvalho de Melo escreveu: > > Em Tue, Sep 22, 2015 at 09:24:55AM +0900, Namhyung Kim escreveu: > > > When perf creates a new child to profile, the events are e

Re: [PATCH v2] perf record: Synthesize COMM event for a command line workload

2015-09-22 Thread Arnaldo Carvalho de Melo
Em Tue, Sep 22, 2015 at 04:25:34PM -0300, Arnaldo Carvalho de Melo escreveu: > Em Tue, Sep 22, 2015 at 09:24:55AM +0900, Namhyung Kim escreveu: > > When perf creates a new child to profile, the events are enabled on > > exec(). And in this case, it doesn't synthesize any event for the > > child si

Re: [PATCH v2] perf record: Synthesize COMM event for a command line workload

2015-09-22 Thread Arnaldo Carvalho de Melo
Em Tue, Sep 22, 2015 at 09:24:55AM +0900, Namhyung Kim escreveu: > When perf creates a new child to profile, the events are enabled on > exec(). And in this case, it doesn't synthesize any event for the > child since they'll be generated during exec(). But there's an window > between the enabling

[PATCH v2] perf record: Synthesize COMM event for a command line workload

2015-09-21 Thread Namhyung Kim
When perf creates a new child to profile, the events are enabled on exec(). And in this case, it doesn't synthesize any event for the child since they'll be generated during exec(). But there's an window between the enabling and the event generation. It used to be overcome since samples are only