[v4][PATCH 1/4] powerpc/kprobe: introduce a new thread flag

2012-09-12 Thread Tiejun Chen
We need to add a new thread flag, TIF_EMULATE_STACK_STORE, for emulating stack store operation while exiting exception. Signed-off-by: Tiejun Chen tiejun.c...@windriver.com --- arch/powerpc/include/asm/thread_info.h |3 +++ 1 file changed, 3 insertions(+) diff --git

[PATCH 1/4] powerpc/kprobe: introduce a new thread flag

2011-12-12 Thread Tiejun Chen
We need to add a new thread flag, TIF_KPROBE/_TIF_DELAYED_KPROBE, for handling kprobe operation while exiting exception. Signed-off-by: Tiejun Chen tiejun.c...@windriver.com --- arch/powerpc/include/asm/thread_info.h |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git

Re: [PATCH 1/4] powerpc/kprobe: introduce a new thread flag

2011-12-12 Thread Benjamin Herrenschmidt
On Mon, 2011-12-12 at 16:50 +0800, Tiejun Chen wrote: We need to add a new thread flag, TIF_KPROBE/_TIF_DELAYED_KPROBE, for handling kprobe operation while exiting exception. The basic idea is sane, however the instruction emulation isn't per-se kprobe specific. It could be used by xmon too for

Re: [PATCH 1/4] powerpc/kprobe: introduce a new thread flag

2011-12-12 Thread tiejun.chen
Benjamin Herrenschmidt wrote: On Mon, 2011-12-12 at 16:50 +0800, Tiejun Chen wrote: We need to add a new thread flag, TIF_KPROBE/_TIF_DELAYED_KPROBE, for handling kprobe operation while exiting exception. The basic idea is sane, however the instruction emulation isn't per-se kprobe