]>
git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blob - arch/arm64/include/asm/probes.h
2 * arch/arm64/include/asm/probes.h
4 * Copyright (C) 2013 Linaro Limited
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * General Public License for more details.
18 #include <asm/opcodes.h>
20 typedef u32 probe_opcode_t
;
21 typedef void (probes_handler_t
) (u32 opcode
, long addr
, struct pt_regs
*);
23 /* architecture specific copy of original instruction */
24 struct arch_probe_insn
{
26 pstate_check_t
*pstate_cc
;
27 probes_handler_t
*handler
;
28 /* restore address after step xol */
29 unsigned long restore
;
32 typedef u32 kprobe_opcode_t
;
33 struct arch_specific_insn
{
34 struct arch_probe_insn api
;