[PATCH] Switch Kprobes inline functions to __kprobes for ppc64
authorPrasanna S Panchamukhi <prasanna@in.ibm.com>
Wed, 19 Apr 2006 05:22:01 +0000 (22:22 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 19 Apr 2006 16:13:53 +0000 (09:13 -0700)
commit46dbe2f4ef9954e3ed2155995b76e32f31fef6bb
tree2d2addfaeda42fe7ef54cf5be5230b7237b74d8b
parent3b60211c1618063cb296439ebaef2041a725ba20
[PATCH] Switch Kprobes inline functions to __kprobes for ppc64

Andrew Morton pointed out that compiler might not inline the functions
marked for inline in kprobes.  There-by allowing the insertion of probes
on these kprobes routines, which might cause recursion.

This patch removes all such inline and adds them to kprobes section
there by disallowing probes on all such routines.  Some of the routines
can even still be inlined, since these routines gets executed after the
kprobes had done necessay setup for reentrancy.

Signed-off-by: Prasanna S Panchamukhi <prasanna@in.ibm.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/powerpc/kernel/kprobes.c