aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-arm/kprobes.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-arm/kprobes.h')
-rw-r--r--include/asm-arm/kprobes.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/include/asm-arm/kprobes.h b/include/asm-arm/kprobes.h
index 951322328793..273f37413ee6 100644
--- a/include/asm-arm/kprobes.h
+++ b/include/asm-arm/kprobes.h
@@ -18,6 +18,16 @@
18 18
19#include <linux/types.h> 19#include <linux/types.h>
20#include <linux/ptrace.h> 20#include <linux/ptrace.h>
21#include <linux/percpu.h>
22
23#define ARCH_SUPPORTS_KRETPROBES
24#define __ARCH_WANT_KPROBES_INSN_SLOT
25#define MAX_INSN_SIZE 2
26#define MAX_STACK_SIZE 64 /* 32 would probably be OK */
27
28#define regs_return_value(regs) ((regs)->ARM_r0)
29#define flush_insn_slot(p) do { } while (0)
30#define kretprobe_blacklist_size 0
21 31
22typedef u32 kprobe_opcode_t; 32typedef u32 kprobe_opcode_t;
23 33
@@ -30,6 +40,25 @@ struct arch_specific_insn {
30 kprobe_insn_handler_t *insn_handler; 40 kprobe_insn_handler_t *insn_handler;
31}; 41};
32 42
43struct prev_kprobe {
44 struct kprobe *kp;
45 unsigned int status;
46};
47
48/* per-cpu kprobe control block */
49struct kprobe_ctlblk {
50 unsigned int kprobe_status;
51 struct prev_kprobe prev_kprobe;
52 struct pt_regs jprobe_saved_regs;
53 char jprobes_stack[MAX_STACK_SIZE];
54};
55
56void arch_remove_kprobe(struct kprobe *);
57
58int kprobe_fault_handler(struct pt_regs *regs, unsigned int fsr);
59int kprobe_exceptions_notify(struct notifier_block *self,
60 unsigned long val, void *data);
61
33enum kprobe_insn { 62enum kprobe_insn {
34 INSN_REJECTED, 63 INSN_REJECTED,
35 INSN_GOOD, 64 INSN_GOOD,