Re: [PATCH 06/14] perf, core: always switch pmu specific data during context switch

2014-02-05 Thread Yan, Zheng
On 02/06/2014 02:35 AM, Stephane Eranian wrote: > On Wed, Feb 5, 2014 at 6:55 PM, Peter Zijlstra wrote: >> On Wed, Feb 05, 2014 at 06:19:27PM +0100, Stephane Eranian wrote: >>> On Fri, Jan 3, 2014 at 6:48 AM, Yan, Zheng wrote: If two tasks were both forked from the same parent task, Events i

Re: [PATCH 06/14] perf, core: always switch pmu specific data during context switch

2014-02-05 Thread Stephane Eranian
On Wed, Feb 5, 2014 at 6:55 PM, Peter Zijlstra wrote: > On Wed, Feb 05, 2014 at 06:19:27PM +0100, Stephane Eranian wrote: >> On Fri, Jan 3, 2014 at 6:48 AM, Yan, Zheng wrote: >> > If two tasks were both forked from the same parent task, Events in their >> > perf >> > task contexts can be the sam

Re: [PATCH 06/14] perf, core: always switch pmu specific data during context switch

2014-02-05 Thread Peter Zijlstra
On Wed, Feb 05, 2014 at 06:19:27PM +0100, Stephane Eranian wrote: > On Fri, Jan 3, 2014 at 6:48 AM, Yan, Zheng wrote: > > If two tasks were both forked from the same parent task, Events in their > > perf > > task contexts can be the same. Perf core optimizes context switch oout in > > this > > c

Re: [PATCH 06/14] perf, core: always switch pmu specific data during context switch

2014-02-05 Thread Stephane Eranian
On Fri, Jan 3, 2014 at 6:48 AM, Yan, Zheng wrote: > If two tasks were both forked from the same parent task, Events in their perf > task contexts can be the same. Perf core optimizes context switch oout in this > case. > > Previous patch inroduces pmu specific data. The data is task specific, so w

[PATCH 06/14] perf, core: always switch pmu specific data during context switch

2014-01-02 Thread Yan, Zheng
If two tasks were both forked from the same parent task, Events in their perf task contexts can be the same. Perf core optimizes context switch oout in this case. Previous patch inroduces pmu specific data. The data is task specific, so we should switch the data even when context switch is optimiz