Re: [PATCH 09/14] perf, x86: Save/resotre LBR stack during context switch

2014-02-10 Thread Yan, Zheng
On 02/06/2014 11:09 PM, Stephane Eranian wrote: > On Wed, Feb 5, 2014 at 6:45 PM, Stephane Eranian wrote: >> On Fri, Jan 3, 2014 at 6:48 AM, Yan, Zheng wrote: >>> When the LBR call stack is enabled, it is necessary to save/restore >>> the LBR stack on context switch. The solution is saving/restor

Re: [PATCH 09/14] perf, x86: Save/resotre LBR stack during context switch

2014-02-06 Thread Stephane Eranian
On Wed, Feb 5, 2014 at 6:45 PM, Stephane Eranian wrote: > On Fri, Jan 3, 2014 at 6:48 AM, Yan, Zheng wrote: >> When the LBR call stack is enabled, it is necessary to save/restore >> the LBR stack on context switch. The solution is saving/restoring >> the LBR stack to/from task's perf event contex

Re: [PATCH 09/14] perf, x86: Save/resotre LBR stack during context switch

2014-02-05 Thread Stephane Eranian
On Fri, Jan 3, 2014 at 6:48 AM, Yan, Zheng wrote: > When the LBR call stack is enabled, it is necessary to save/restore > the LBR stack on context switch. The solution is saving/restoring > the LBR stack to/from task's perf event context. > > The LBR stack is saved/restored only when there are eve

[PATCH 09/14] perf, x86: Save/resotre LBR stack during context switch

2014-01-02 Thread Yan, Zheng
When the LBR call stack is enabled, it is necessary to save/restore the LBR stack on context switch. The solution is saving/restoring the LBR stack to/from task's perf event context. The LBR stack is saved/restored only when there are events that use the LBR call stack. If no event uses LBR call s