Linux 4.18.10
[linux/fpc-iii.git] / arch / arm64 / include / asm / uprobes.h
blob8d004073d0e8e32b61426e539bfd97d0d6bfa094
1 /*
2 * Copyright (C) 2014-2016 Pratyush Anand <panand@redhat.com>
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 */
9 #ifndef _ASM_UPROBES_H
10 #define _ASM_UPROBES_H
12 #include <asm/debug-monitors.h>
13 #include <asm/insn.h>
14 #include <asm/probes.h>
16 #define MAX_UINSN_BYTES AARCH64_INSN_SIZE
18 #define UPROBE_SWBP_INSN BRK64_OPCODE_UPROBES
19 #define UPROBE_SWBP_INSN_SIZE AARCH64_INSN_SIZE
20 #define UPROBE_XOL_SLOT_BYTES MAX_UINSN_BYTES
22 typedef u32 uprobe_opcode_t;
24 struct arch_uprobe_task {
27 struct arch_uprobe {
28 union {
29 u8 insn[MAX_UINSN_BYTES];
30 u8 ixol[MAX_UINSN_BYTES];
32 struct arch_probe_insn api;
33 bool simulate;
36 #endif