Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 
0003 #ifndef __ASM_CSKY_PROBES_H
0004 #define __ASM_CSKY_PROBES_H
0005 
0006 typedef u32 probe_opcode_t;
0007 typedef void (probes_handler_t) (u32 opcode, long addr, struct pt_regs *);
0008 
0009 /* architecture specific copy of original instruction */
0010 struct arch_probe_insn {
0011     probe_opcode_t *insn;
0012     probes_handler_t *handler;
0013     /* restore address after simulation */
0014     unsigned long restore;
0015 };
0016 
0017 #ifdef CONFIG_KPROBES
0018 typedef u32 kprobe_opcode_t;
0019 struct arch_specific_insn {
0020     struct arch_probe_insn api;
0021 };
0022 #endif
0023 
0024 #endif /* __ASM_CSKY_PROBES_H */