Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  * arch/arm64/include/asm/probes.h
0004  *
0005  * Copyright (C) 2013 Linaro Limited
0006  */
0007 #ifndef _ARM_PROBES_H
0008 #define _ARM_PROBES_H
0009 
0010 #include <asm/insn.h>
0011 
0012 typedef u32 probe_opcode_t;
0013 typedef void (probes_handler_t) (u32 opcode, long addr, struct pt_regs *);
0014 
0015 /* architecture specific copy of original instruction */
0016 struct arch_probe_insn {
0017     probe_opcode_t *insn;
0018     pstate_check_t *pstate_cc;
0019     probes_handler_t *handler;
0020     /* restore address after step xol */
0021     unsigned long restore;
0022 };
0023 #ifdef CONFIG_KPROBES
0024 typedef u32 kprobe_opcode_t;
0025 struct arch_specific_insn {
0026     struct arch_probe_insn api;
0027 };
0028 #endif
0029 
0030 #endif