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

2012-10-23 Thread Stephane Eranian
On Tue, Oct 23, 2012 at 6:19 AM, Yan, Zheng wrote: > On 10/22/2012 04:31 PM, Stephane Eranian wrote: >> On Mon, Oct 22, 2012 at 7:57 AM, Yan, Zheng wrote: >>> From: "Yan, Zheng" >>> >>> When the LBR call stack is enabled, it is necessary to save/restore >>> the stack on context switch. The solut

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

2012-10-22 Thread Yan, Zheng
On 10/22/2012 04:31 PM, Stephane Eranian wrote: > On Mon, Oct 22, 2012 at 7:57 AM, Yan, Zheng wrote: >> From: "Yan, Zheng" >> >> When the LBR call stack is enabled, it is necessary to save/restore >> the stack on context switch. The solution is saving/restoring the >> stack to/from task's perf ev

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

2012-10-22 Thread Stephane Eranian
On Mon, Oct 22, 2012 at 7:57 AM, Yan, Zheng wrote: > From: "Yan, Zheng" > > When the LBR call stack is enabled, it is necessary to save/restore > the stack on context switch. The solution is saving/restoring the > stack to/from task's perf event context. If task has no perf event > context, just

[PATCH 3/6] perf, x86: Save/resotre LBR stack during context switch

2012-10-21 Thread Yan, Zheng
From: "Yan, Zheng" When the LBR call stack is enabled, it is necessary to save/restore the stack on context switch. The solution is saving/restoring the stack to/from task's perf event context. If task has no perf event context, just flush the stack on context switch. Signed-off-by: Yan, Zheng

[PATCH 3/6] perf, x86: Save/resotre LBR stack during context switch

2012-10-21 Thread Yan, Zheng
From: "Yan, Zheng" When the LBR call stack is enabled, it is necessary to save/restore the stack on context switch. The solution is saving/restoring the stack to/from task's perf event context. If task has no perf event context, just flush the stack on context switch. Signed-off-by: Yan, Zheng