diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2008-06-19 14:26:19 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-07-18 00:44:53 -0400 |
commit | a00736e936c2a1e9c36f22f6f3a69392eaab51f4 (patch) | |
tree | 4fd3d203dbc30d50a1b0c1acce2957e082a75173 /include/asm-sparc/kprobes.h | |
parent | bdc3135ac99efd59de084a309751ec76887e62d8 (diff) |
sparc: copy sparc64 specific files to asm-sparc
Used the following script to copy the files:
cd include
set -e
SPARC64=`ls asm-sparc64`
for FILE in ${SPARC64}; do
if [ -f asm-sparc/$FILE ]; then
echo $FILE exist in asm-sparc
else
git mv asm-sparc64/$FILE asm-sparc/$FILE
printf "#include <asm-sparc/$FILE>\n" > asm-sparc64/$FILE
git add asm-sparc64/$FILE
fi
done
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'include/asm-sparc/kprobes.h')
-rw-r--r-- | include/asm-sparc/kprobes.h | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/include/asm-sparc/kprobes.h b/include/asm-sparc/kprobes.h new file mode 100644 index 000000000000..5879d71afdaa --- /dev/null +++ b/include/asm-sparc/kprobes.h | |||
@@ -0,0 +1,49 @@ | |||
1 | #ifndef _SPARC64_KPROBES_H | ||
2 | #define _SPARC64_KPROBES_H | ||
3 | |||
4 | #include <linux/types.h> | ||
5 | #include <linux/percpu.h> | ||
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 kretprobe_blacklist_size 0 | ||
14 | |||
15 | #define arch_remove_kprobe(p) do {} while (0) | ||
16 | |||
17 | #define flush_insn_slot(p) \ | ||
18 | do { flushi(&(p)->ainsn.insn[0]); \ | ||
19 | flushi(&(p)->ainsn.insn[1]); \ | ||
20 | } while (0) | ||
21 | |||
22 | void kretprobe_trampoline(void); | ||
23 | |||
24 | /* Architecture specific copy of original instruction*/ | ||
25 | struct arch_specific_insn { | ||
26 | /* copy of the original instruction */ | ||
27 | kprobe_opcode_t insn[MAX_INSN_SIZE]; | ||
28 | }; | ||
29 | |||
30 | struct prev_kprobe { | ||
31 | struct kprobe *kp; | ||
32 | unsigned long status; | ||
33 | unsigned long orig_tnpc; | ||
34 | unsigned long orig_tstate_pil; | ||
35 | }; | ||
36 | |||
37 | /* per-cpu kprobe control block */ | ||
38 | struct kprobe_ctlblk { | ||
39 | unsigned long kprobe_status; | ||
40 | unsigned long kprobe_orig_tnpc; | ||
41 | unsigned long kprobe_orig_tstate_pil; | ||
42 | struct pt_regs jprobe_saved_regs; | ||
43 | struct prev_kprobe prev_kprobe; | ||
44 | }; | ||
45 | |||
46 | extern int kprobe_exceptions_notify(struct notifier_block *self, | ||
47 | unsigned long val, void *data); | ||
48 | extern int kprobe_fault_handler(struct pt_regs *regs, int trapnr); | ||
49 | #endif /* _SPARC64_KPROBES_H */ | ||