diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-07-29 12:00:59 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-10-14 10:34:22 +0200 |
commit | 36dcd67ae994fece615b7c700958d215e884b9ae (patch) | |
tree | 2a4bed0cb9de673b7760b81f9fe03fd5f262c77e /include | |
parent | 9795302acf2817d0842e56d23df6008e43df0970 (diff) | |
download | op-kernel-dev-36dcd67ae994fece615b7c700958d215e884b9ae.zip op-kernel-dev-36dcd67ae994fece615b7c700958d215e884b9ae.tar.gz |
ftrace: ignore functions that cannot be kprobe-ed
kprobes already has an extensive list of annotations for functions
that should not be instrumented. Add notrace annotations to these
functions as well.
This is particularly useful for functions called by the NMI path.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/kprobes.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/kprobes.h b/include/linux/kprobes.h index 0be7795..497b1d1 100644 --- a/include/linux/kprobes.h +++ b/include/linux/kprobes.h @@ -29,6 +29,7 @@ * <jkenisto@us.ibm.com> and Prasanna S Panchamukhi * <prasanna@in.ibm.com> added function-return probes. */ +#include <linux/linkage.h> #include <linux/list.h> #include <linux/notifier.h> #include <linux/smp.h> @@ -47,7 +48,7 @@ #define KPROBE_HIT_SSDONE 0x00000008 /* Attach to insert probes on any functions which should be ignored*/ -#define __kprobes __attribute__((__section__(".kprobes.text"))) +#define __kprobes __attribute__((__section__(".kprobes.text"))) notrace struct kprobe; struct pt_regs; @@ -256,7 +257,7 @@ void recycle_rp_inst(struct kretprobe_instance *ri, struct hlist_head *head); #else /* CONFIG_KPROBES */ -#define __kprobes /**/ +#define __kprobes notrace struct jprobe; struct kretprobe; |