1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * arch/arm/probes/decode-arm.h
5 * Copyright 2013 Linaro Ltd.
6 * Written by: David A. Long
9 #ifndef _ARM_KERNEL_PROBES_ARM_H
10 #define _ARM_KERNEL_PROBES_ARM_H
14 enum probes_arm_action {
21 PROBES_SATURATING_ARITHMETIC,
31 PROBES_DATA_PROCESSING_REG,
32 PROBES_DATA_PROCESSING_IMM,
47 NUM_PROBES_ARM_ACTIONS
50 void __kprobes simulate_bbl(probes_opcode_t opcode,
51 struct arch_probes_insn *asi, struct pt_regs *regs);
52 void __kprobes simulate_blx1(probes_opcode_t opcode,
53 struct arch_probes_insn *asi, struct pt_regs *regs);
54 void __kprobes simulate_blx2bx(probes_opcode_t opcode,
55 struct arch_probes_insn *asi, struct pt_regs *regs);
56 void __kprobes simulate_mrs(probes_opcode_t opcode,
57 struct arch_probes_insn *asi, struct pt_regs *regs);
58 void __kprobes simulate_mov_ipsp(probes_opcode_t opcode,
59 struct arch_probes_insn *asi, struct pt_regs *regs);
61 extern const union decode_item probes_decode_arm_table[];
63 enum probes_insn arm_probes_decode_insn(probes_opcode_t,
64 struct arch_probes_insn *, bool emulate,
65 const union decode_action *actions,
66 const struct decode_checker *checkers[]);