[RFC PATCH 4/7] perf, x86: Save/resotre LBR stack during context switch

2013-09-26 Thread Yan, Zheng
From: "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. Signed-off-by: Yan, Zheng --- arch/x86/kernel/cpu/perf_event.c | 1 +

[RFC PATCH 4/7] perf, x86: Save/resotre LBR stack during context switch

2013-09-26 Thread Yan, Zheng
From: Yan, Zheng zheng.z@intel.com 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. Signed-off-by: Yan, Zheng zheng.z@intel.com ---

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

2013-06-26 Thread Peter Zijlstra
On Tue, Jun 25, 2013 at 04:47:16PM +0800, 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 >

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

2013-06-26 Thread Peter Zijlstra
On Tue, Jun 25, 2013 at 04:47:16PM +0800, Yan, Zheng wrote: From: Yan, Zheng zheng.z@intel.com 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

[PATCH 4/7] perf, x86: Save/resotre LBR stack during context switch

2013-06-25 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 4/7] perf, x86: Save/resotre LBR stack during context switch

2013-06-25 Thread Yan, Zheng
From: Yan, Zheng zheng.z@intel.com 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.

[PATCH 4/7] perf, x86: Save/resotre LBR stack during context switch

2013-02-24 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 4/7] perf, x86: Save/resotre LBR stack during context switch

2013-02-24 Thread Yan, Zheng
From: Yan, Zheng zheng.z@intel.com 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.

[PATCH 4/7] perf, x86: Save/resotre LBR stack during context switch

2013-01-29 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 4/7] perf, x86: Save/resotre LBR stack during context switch

2013-01-29 Thread Yan, Zheng
From: Yan, Zheng zheng.z@intel.com 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.