]>
Commit | Line | Data |
---|---|---|
1da177e4 LT |
1 | #ifndef _SPARC64_KPROBES_H |
2 | #define _SPARC64_KPROBES_H | |
3 | ||
1da177e4 | 4 | #include <linux/types.h> |
f215d985 | 5 | #include <linux/percpu.h> |
1da177e4 LT |
6 | |
7 | typedef u32 kprobe_opcode_t; | |
8 | ||
9 | #define BREAKPOINT_INSTRUCTION 0x91d02070 /* ta 0x70 */ | |
10 | #define BREAKPOINT_INSTRUCTION_2 0x91d02071 /* ta 0x71 */ | |
11 | #define MAX_INSN_SIZE 2 | |
12 | ||
13 | #define JPROBE_ENTRY(pentry) (kprobe_opcode_t *)pentry | |
0498b635 | 14 | #define arch_remove_kprobe(p) do {} while (0) |
1da177e4 LT |
15 | |
16 | /* Architecture specific copy of original instruction*/ | |
17 | struct arch_specific_insn { | |
18 | /* copy of the original instruction */ | |
19 | kprobe_opcode_t insn[MAX_INSN_SIZE]; | |
20 | }; | |
21 | ||
f215d985 AM |
22 | struct prev_kprobe { |
23 | struct kprobe *kp; | |
24 | unsigned int status; | |
25 | unsigned long orig_tnpc; | |
26 | unsigned long orig_tstate_pil; | |
27 | }; | |
28 | ||
29 | /* per-cpu kprobe control block */ | |
30 | struct kprobe_ctlblk { | |
31 | unsigned long kprobe_status; | |
32 | unsigned long kprobe_orig_tnpc; | |
33 | unsigned long kprobe_orig_tstate_pil; | |
34 | long *jprobe_saved_esp; | |
35 | struct pt_regs jprobe_saved_regs; | |
36 | struct pt_regs *jprobe_saved_regs_location; | |
37 | struct sparc_stackf jprobe_saved_stack; | |
38 | struct prev_kprobe prev_kprobe; | |
39 | }; | |
40 | ||
1da177e4 LT |
41 | extern int kprobe_exceptions_notify(struct notifier_block *self, |
42 | unsigned long val, void *data); | |
1da177e4 | 43 | #endif /* _SPARC64_KPROBES_H */ |