[PATCH] Switch Kprobes inline functions to __kprobes for i386
authorPrasanna S Panchamukhi <prasanna@in.ibm.com>
Wed, 19 Apr 2006 05:21:59 +0000 (22:21 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 19 Apr 2006 16:13:52 +0000 (09:13 -0700)
commit34c37e18696ff6a773f0403348342a9fe49df4af
treee9acba5ee08e10085f39d161de4ca5b171bcbf59
parentc640be26f7f8b7a826529baa72fad76bd4f6f5a2
[PATCH] Switch Kprobes inline functions to __kprobes for i386

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>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/i386/kernel/kprobes.c