Merge tag 'locking-urgent-2020-12-27' of git://git.kernel.org/pub/scm/linux/kernel...
[linux/fpc-iii.git] / arch / csky / include / asm / uprobes.h
blob600388eb93c6cb416dd9b0f9cf3ce53232d9f9c0
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #ifndef __ASM_CSKY_UPROBES_H
4 #define __ASM_CSKY_UPROBES_H
6 #include <asm/probes.h>
8 #define MAX_UINSN_BYTES 4
10 #define UPROBE_SWBP_INSN USR_BKPT
11 #define UPROBE_SWBP_INSN_SIZE 2
12 #define UPROBE_XOL_SLOT_BYTES MAX_UINSN_BYTES
14 typedef u32 uprobe_opcode_t;
16 struct arch_uprobe_task {
17 unsigned long saved_trap_no;
20 struct arch_uprobe {
21 union {
22 u8 insn[MAX_UINSN_BYTES];
23 u8 ixol[MAX_UINSN_BYTES];
25 struct arch_probe_insn api;
26 unsigned long insn_size;
27 bool simulate;
30 int uprobe_breakpoint_handler(struct pt_regs *regs);
31 int uprobe_single_step_handler(struct pt_regs *regs);
33 #endif /* __ASM_CSKY_UPROBES_H */