xref: /openbmc/linux/arch/s390/include/asm/uprobes.h (revision 2a598d0b)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  *    User-space Probes (UProbes) for s390
4  *
5  *    Copyright IBM Corp. 2014
6  *    Author(s): Jan Willeke,
7  */
8 
9 #ifndef _ASM_UPROBES_H
10 #define _ASM_UPROBES_H
11 
12 #include <linux/notifier.h>
13 
14 typedef u16 uprobe_opcode_t;
15 
16 #define UPROBE_XOL_SLOT_BYTES	256 /* cache aligned */
17 
18 #define UPROBE_SWBP_INSN	0x0002
19 #define UPROBE_SWBP_INSN_SIZE	2
20 
21 struct arch_uprobe {
22 	union{
23 		uprobe_opcode_t insn[3];
24 		uprobe_opcode_t ixol[3];
25 	};
26 	unsigned int saved_per : 1;
27 	unsigned int saved_int_code;
28 };
29 
30 struct arch_uprobe_task {
31 };
32 
33 #endif	/* _ASM_UPROBES_H */
34