1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 /* 3 * arch/arm64/kernel/probes/simulate-insn.h 4 * 5 * Copyright (C) 2013 Linaro Limited 6 */ 7 8 #ifndef _ARM_KERNEL_KPROBES_SIMULATE_INSN_H 9 #define _ARM_KERNEL_KPROBES_SIMULATE_INSN_H 10 11 void simulate_adr_adrp(u32 opcode, long addr, struct pt_regs *regs); 12 void simulate_b_bl(u32 opcode, long addr, struct pt_regs *regs); 13 void simulate_b_cond(u32 opcode, long addr, struct pt_regs *regs); 14 void simulate_br_blr_ret(u32 opcode, long addr, struct pt_regs *regs); 15 void simulate_cbz_cbnz(u32 opcode, long addr, struct pt_regs *regs); 16 void simulate_tbz_tbnz(u32 opcode, long addr, struct pt_regs *regs); 17 void simulate_ldr_literal(u32 opcode, long addr, struct pt_regs *regs); 18 void simulate_ldrsw_literal(u32 opcode, long addr, struct pt_regs *regs); 19 void simulate_nop(u32 opcode, long addr, struct pt_regs *regs); 20 21 #endif /* _ARM_KERNEL_KPROBES_SIMULATE_INSN_H */ 22