Re: [v5][PATCH 2/3] powerpc/kprobe: complete kprobe and migrate exception frame

2012-09-17 Thread tiejun.chen
On 09/18/2012 01:09 PM, Benjamin Herrenschmidt wrote: On Tue, 2012-09-18 at 15:05 +1000, Benjamin Herrenschmidt wrote: On Mon, 2012-09-17 at 17:54 +0800, Tiejun Chen wrote: -#ifdef CONFIG_PREEMPT b restore /* N.B. the only way to get here is from the beq following ret_from_exce

Re: [v5][PATCH 2/3] powerpc/kprobe: complete kprobe and migrate exception frame

2012-09-17 Thread Benjamin Herrenschmidt
On Tue, 2012-09-18 at 15:05 +1000, Benjamin Herrenschmidt wrote: > On Mon, 2012-09-17 at 17:54 +0800, Tiejun Chen wrote: > > -#ifdef CONFIG_PREEMPT > > b restore > > > > /* N.B. the only way to get here is from the beq following > > ret_from_except. */ > > resume_kernel: > > - /* c

Re: [v5][PATCH 2/3] powerpc/kprobe: complete kprobe and migrate exception frame

2012-09-17 Thread Benjamin Herrenschmidt
On Mon, 2012-09-17 at 17:54 +0800, Tiejun Chen wrote: > -#ifdef CONFIG_PREEMPT > b restore > > /* N.B. the only way to get here is from the beq following ret_from_except. > */ > resume_kernel: > - /* check current_thread_info->preempt_count */ > + /* check current_thread_in

Re: [v5][PATCH 2/3] powerpc/kprobe: complete kprobe and migrate exception frame

2012-09-17 Thread tiejun.chen
On 09/17/2012 06:02 PM, David Laight wrote: /* N.B. the only way to get here is from the beq following ret_from_except. */ resume_kernel: - /* check current_thread_info->preempt_count */ + /* check current_thread_info, _TIF_EMULATE_STACK_STORE */ CURRENT_THREAD_INFO(r9, r1

RE: [v5][PATCH 2/3] powerpc/kprobe: complete kprobe and migrate exception frame

2012-09-17 Thread David Laight
> /* N.B. the only way to get here is from the beq following ret_from_except. > */ > resume_kernel: > - /* check current_thread_info->preempt_count */ > + /* check current_thread_info, _TIF_EMULATE_STACK_STORE */ > CURRENT_THREAD_INFO(r9, r1) > + lwz r8,TI_FLAGS(r9) > +