Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[cris-mirror.git] / arch / arm64 / include / asm / probes.h
blob6a5b28904c33b6224e383611492c242eb4a976e7
1 /*
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.
15 #ifndef _ARM_PROBES_H
16 #define _ARM_PROBES_H
18 typedef u32 probe_opcode_t;
19 typedef void (probes_handler_t) (u32 opcode, long addr, struct pt_regs *);
21 /* architecture specific copy of original instruction */
22 struct arch_probe_insn {
23 probe_opcode_t *insn;
24 pstate_check_t *pstate_cc;
25 probes_handler_t *handler;
26 /* restore address after step xol */
27 unsigned long restore;
29 #ifdef CONFIG_KPROBES
30 typedef u32 kprobe_opcode_t;
31 struct arch_specific_insn {
32 struct arch_probe_insn api;
34 #endif
36 #endif