1 #ifndef _SPARC64_KPROBES_H
2 #define _SPARC64_KPROBES_H
4 #include <linux/types.h>
5 #include <linux/percpu.h>
7 typedef u32 kprobe_opcode_t
;
9 #define BREAKPOINT_INSTRUCTION 0x91d02070 /* ta 0x70 */
10 #define BREAKPOINT_INSTRUCTION_2 0x91d02071 /* ta 0x71 */
11 #define MAX_INSN_SIZE 2
13 #define kretprobe_blacklist_size 0
15 #define arch_remove_kprobe(p) do {} while (0)
17 <<<<<<< HEAD
:include
/asm-sparc64
/kprobes
.h
18 #define ARCH_SUPPORTS_KRETPROBES
21 >>>>>>> 264e3e889d86e552b4191d69bb60f4f3b383135a
:include
/asm-sparc64
/kprobes
.h
22 #define flush_insn_slot(p) \
23 do { flushi(&(p)->ainsn.insn[0]); \
24 flushi(&(p)->ainsn.insn[1]); \
27 void kretprobe_trampoline(void);
29 /* Architecture specific copy of original instruction*/
30 struct arch_specific_insn
{
31 /* copy of the original instruction */
32 kprobe_opcode_t insn
[MAX_INSN_SIZE
];
38 unsigned long orig_tnpc
;
39 unsigned long orig_tstate_pil
;
42 /* per-cpu kprobe control block */
43 struct kprobe_ctlblk
{
44 unsigned long kprobe_status
;
45 unsigned long kprobe_orig_tnpc
;
46 unsigned long kprobe_orig_tstate_pil
;
47 struct pt_regs jprobe_saved_regs
;
48 struct prev_kprobe prev_kprobe
;
51 extern int kprobe_exceptions_notify(struct notifier_block
*self
,
52 unsigned long val
, void *data
);
53 extern int kprobe_fault_handler(struct pt_regs
*regs
, int trapnr
);
54 #endif /* _SPARC64_KPROBES_H */