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.
10 #define _ASM_UPROBES_H
12 #include <asm/debug-monitors.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
{
29 u8 insn
[MAX_UINSN_BYTES
];
30 u8 ixol
[MAX_UINSN_BYTES
];
32 struct arch_probe_insn api
;