0001
0002
0003
0004
0005
0006 #ifndef _ASM_UPROBES_H
0007 #define _ASM_UPROBES_H
0008
0009 #include <asm/debug-monitors.h>
0010 #include <asm/insn.h>
0011 #include <asm/probes.h>
0012
0013 #define MAX_UINSN_BYTES AARCH64_INSN_SIZE
0014
0015 #define UPROBE_SWBP_INSN BRK64_OPCODE_UPROBES
0016 #define UPROBE_SWBP_INSN_SIZE AARCH64_INSN_SIZE
0017 #define UPROBE_XOL_SLOT_BYTES MAX_UINSN_BYTES
0018
0019 typedef u32 uprobe_opcode_t;
0020
0021 struct arch_uprobe_task {
0022 };
0023
0024 struct arch_uprobe {
0025 union {
0026 u8 insn[MAX_UINSN_BYTES];
0027 u8 ixol[MAX_UINSN_BYTES];
0028 };
0029 struct arch_probe_insn api;
0030 bool simulate;
0031 };
0032
0033 #endif