1 /* SPDX-License-Identifier: GPL-2.0-or-later */
5 * User-space Probes (UProbes) for x86
7 * Copyright (C) IBM Corporation, 2008-2011
13 #include <linux/notifier.h>
15 typedef u8 uprobe_opcode_t
;
17 #define MAX_UINSN_BYTES 16
18 #define UPROBE_XOL_SLOT_BYTES 128 /* to keep it cache aligned */
20 #define UPROBE_SWBP_INSN 0xcc
21 #define UPROBE_SWBP_INSN_SIZE 1
23 struct uprobe_xol_ops
;
27 u8 insn
[MAX_UINSN_BYTES
];
28 u8 ixol
[MAX_UINSN_BYTES
];
31 const struct uprobe_xol_ops
*ops
;
44 u8 reg_offset
; /* to the start of pt_regs */
50 struct arch_uprobe_task
{
52 unsigned long saved_scratch_register
;
54 unsigned int saved_trap_nr
;
55 unsigned int saved_tf
;
58 #endif /* _ASM_UPROBES_H */