Linux Audio

Check our new training course

Loading...
v4.17
 1/* SPDX-License-Identifier: GPL-2.0 */
 2#ifndef _SPARC64_KPROBES_H
 3#define _SPARC64_KPROBES_H
 4
 5#include <asm-generic/kprobes.h>
 6
 7#define BREAKPOINT_INSTRUCTION   0x91d02070 /* ta 0x70 */
 8#define BREAKPOINT_INSTRUCTION_2 0x91d02071 /* ta 0x71 */
 9
10#ifdef CONFIG_KPROBES
11#include <linux/types.h>
12#include <linux/percpu.h>
13
14typedef u32 kprobe_opcode_t;
15
 
 
16#define MAX_INSN_SIZE 2
17
18#define kretprobe_blacklist_size 0
19
20#define arch_remove_kprobe(p)	do {} while (0)
21
22#define flush_insn_slot(p)		\
23do { 	flushi(&(p)->ainsn.insn[0]);	\
24	flushi(&(p)->ainsn.insn[1]);	\
25} while (0)
26
27void kretprobe_trampoline(void);
28
29/* Architecture specific copy of original instruction*/
30struct arch_specific_insn {
31	/* copy of the original instruction */
32	kprobe_opcode_t insn[MAX_INSN_SIZE];
33};
34
35struct prev_kprobe {
36	struct kprobe *kp;
37	unsigned long status;
38	unsigned long orig_tnpc;
39	unsigned long orig_tstate_pil;
40};
41
42/* per-cpu kprobe control block */
43struct 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;
49};
50
51int kprobe_exceptions_notify(struct notifier_block *self,
52			     unsigned long val, void *data);
53int kprobe_fault_handler(struct pt_regs *regs, int trapnr);
54asmlinkage void __kprobes kprobe_trap(unsigned long trap_level,
55				      struct pt_regs *regs);
56
57#endif /* CONFIG_KPROBES */
58#endif /* _SPARC64_KPROBES_H */
v4.10.11
 
 1#ifndef _SPARC64_KPROBES_H
 2#define _SPARC64_KPROBES_H
 3
 
 
 
 
 
 
 4#include <linux/types.h>
 5#include <linux/percpu.h>
 6
 7typedef 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)		\
18do { 	flushi(&(p)->ainsn.insn[0]);	\
19	flushi(&(p)->ainsn.insn[1]);	\
20} while (0)
21
22void kretprobe_trampoline(void);
23
24/* Architecture specific copy of original instruction*/
25struct arch_specific_insn {
26	/* copy of the original instruction */
27	kprobe_opcode_t insn[MAX_INSN_SIZE];
28};
29
30struct 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 */
38struct 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
46int kprobe_exceptions_notify(struct notifier_block *self,
47			     unsigned long val, void *data);
48int kprobe_fault_handler(struct pt_regs *regs, int trapnr);
49asmlinkage void __kprobes kprobe_trap(unsigned long trap_level,
50				      struct pt_regs *regs);
 
 
51#endif /* _SPARC64_KPROBES_H */