Re: [PATCH 02/14] perf, core: introduce pmu context switch callback

2014-02-05 Thread Yan, Zheng
On 02/06/2014 12:01 AM, Stephane Eranian wrote: > On Fri, Jan 3, 2014 at 6:47 AM, Yan, Zheng wrote: >> The callback is invoked when process is scheduled in or out. It >> provides mechanism for later patches to save/store the LBR stack. >> It can also replace the flush branch stack callback. >> > I

Re: [PATCH 02/14] perf, core: introduce pmu context switch callback

2014-02-05 Thread Stephane Eranian
On Fri, Jan 3, 2014 at 6:47 AM, Yan, Zheng wrote: > The callback is invoked when process is scheduled in or out. It > provides mechanism for later patches to save/store the LBR stack. > It can also replace the flush branch stack callback. > I think you need to say this callback may be invoked on c

[PATCH 02/14] perf, core: introduce pmu context switch callback

2014-01-02 Thread Yan, Zheng
The callback is invoked when process is scheduled in or out. It provides mechanism for later patches to save/store the LBR stack. It can also replace the flush branch stack callback. To avoid unnecessary overhead, the callback is enabled dynamically Signed-off-by: Yan, Zheng --- arch/x86/kernel