|
@@ -29,6 +29,7 @@
|
|
|
* <jkenisto@us.ibm.com> and Prasanna S Panchamukhi
|
|
|
* <prasanna@in.ibm.com> added function-return probes.
|
|
|
*/
|
|
|
+#include <linux/compiler.h> /* for __kprobes */
|
|
|
#include <linux/linkage.h>
|
|
|
#include <linux/list.h>
|
|
|
#include <linux/notifier.h>
|
|
@@ -49,16 +50,11 @@
|
|
|
#define KPROBE_REENTER 0x00000004
|
|
|
#define KPROBE_HIT_SSDONE 0x00000008
|
|
|
|
|
|
-/* Attach to insert probes on any functions which should be ignored*/
|
|
|
-#define __kprobes __attribute__((__section__(".kprobes.text")))
|
|
|
-
|
|
|
#else /* CONFIG_KPROBES */
|
|
|
typedef int kprobe_opcode_t;
|
|
|
struct arch_specific_insn {
|
|
|
int dummy;
|
|
|
};
|
|
|
-#define __kprobes
|
|
|
-
|
|
|
#endif /* CONFIG_KPROBES */
|
|
|
|
|
|
struct kprobe;
|