summaryrefslogtreecommitdiff
path: root/driver/ks_def_handler.h
diff options
context:
space:
mode:
Diffstat (limited to 'driver/ks_def_handler.h')
-rw-r--r--driver/ks_def_handler.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/driver/ks_def_handler.h b/driver/ks_def_handler.h
new file mode 100644
index 00000000..050f8c72
--- /dev/null
+++ b/driver/ks_def_handler.h
@@ -0,0 +1,20 @@
+#ifndef _KS_DEF_HANDLER_H
+#define _KS_DEF_HANDLER_H
+
+#include <asm/percpu.h>
+#include "probes_manager.h"
+
+struct pt_regs;
+struct kretprobe_instance;
+
+DECLARE_PER_CPU(kernel_probe_t *, gpKernProbe);
+
+unsigned long def_jprobe_event_pre_handler(kernel_probe_t *p,
+ struct pt_regs *regs);
+void def_jprobe_event_handler(unsigned long arg0, unsigned long arg1,
+ unsigned long arg2, unsigned long arg3,
+ unsigned long arg4, unsigned long arg5);
+int def_retprobe_event_handler(struct kretprobe_instance *ri,
+ struct pt_regs *regs, kernel_probe_t *p);
+
+#endif /* _KS_DEF_HANDLER_H */