[PATCH] kretprobe instance recycled by parent process
authorbibo mao <bibo_mao@linux.intel.com>
Sun, 26 Mar 2006 09:38:20 +0000 (01:38 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 26 Mar 2006 16:57:04 +0000 (08:57 -0800)
commitc6fd91f0bdcd294a0ae0ba2b2a7f7456ef4b7144
tree1d095d1761a44118f101b2ce9697346ff168753a
parentc9becf58d935265919bf1cb348b2c04492c8949d
[PATCH] kretprobe instance recycled by parent process

When kretprobe probes the schedule() function, if the probed process exits
then schedule() will never return, so some kretprobe instances will never
be recycled.

In this patch the parent process will recycle retprobe instances of the
probed function and there will be no memory leak of kretprobe instances.

Signed-off-by: bibo mao <bibo.mao@intel.com>
Cc: Masami Hiramatsu <hiramatu@sdl.hitachi.co.jp>
Cc: Prasanna S Panchamukhi <prasanna@in.ibm.com>
Cc: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
Cc: Anil S Keshavamurthy <anil.s.keshavamurthy@intel.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/i386/kernel/process.c
arch/ia64/kernel/process.c
arch/powerpc/kernel/process.c
arch/x86_64/kernel/process.c
kernel/kprobes.c
kernel/sched.c