xref: /linux/arch/arm/include/asm/probes.h (revision f145d664df502585618b12ed68c681f82153e02a)
1b2531dd5SDavid A. Long /*
2b2531dd5SDavid A. Long  * arch/arm/include/asm/probes.h
3b2531dd5SDavid A. Long  *
4b2531dd5SDavid A. Long  * Original contents copied from arch/arm/include/asm/kprobes.h
5b2531dd5SDavid A. Long  * which contains the following notice...
6b2531dd5SDavid A. Long  *
7b2531dd5SDavid A. Long  * Copyright (C) 2006, 2007 Motorola Inc.
8b2531dd5SDavid A. Long  *
9b2531dd5SDavid A. Long  * This program is free software; you can redistribute it and/or modify
10b2531dd5SDavid A. Long  * it under the terms of the GNU General Public License version 2 as
11b2531dd5SDavid A. Long  * published by the Free Software Foundation.
12b2531dd5SDavid A. Long  *
13b2531dd5SDavid A. Long  * This program is distributed in the hope that it will be useful,
14b2531dd5SDavid A. Long  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15b2531dd5SDavid A. Long  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16b2531dd5SDavid A. Long  * General Public License for more details.
17b2531dd5SDavid A. Long  */
18b2531dd5SDavid A. Long 
19b2531dd5SDavid A. Long #ifndef _ASM_PROBES_H
20b2531dd5SDavid A. Long #define _ASM_PROBES_H
21b2531dd5SDavid A. Long 
22c18377c3SDavid A. Long struct kprobe;
23*f145d664SDavid A. Long typedef u32 probes_opcode_t;
24c18377c3SDavid A. Long 
257579f4b3SDavid A. Long struct arch_specific_insn;
26*f145d664SDavid A. Long typedef void (kprobe_insn_handler_t)(probes_opcode_t,
277579f4b3SDavid A. Long 				     struct arch_specific_insn *,
287579f4b3SDavid A. Long 				     struct pt_regs *);
29*f145d664SDavid A. Long typedef unsigned long (probes_check_cc)(unsigned long);
30*f145d664SDavid A. Long typedef void (kprobe_insn_singlestep_t)(probes_opcode_t,
317579f4b3SDavid A. Long 					struct arch_specific_insn *,
327579f4b3SDavid A. Long 					struct pt_regs *);
33b2531dd5SDavid A. Long typedef void (kprobe_insn_fn_t)(void);
34b2531dd5SDavid A. Long 
35b2531dd5SDavid A. Long /* Architecture specific copy of original instruction. */
36b2531dd5SDavid A. Long struct arch_specific_insn {
37*f145d664SDavid A. Long 	probes_opcode_t			*insn;
38b2531dd5SDavid A. Long 	kprobe_insn_handler_t		*insn_handler;
39*f145d664SDavid A. Long 	probes_check_cc			*insn_check_cc;
40b2531dd5SDavid A. Long 	kprobe_insn_singlestep_t	*insn_singlestep;
41b2531dd5SDavid A. Long 	kprobe_insn_fn_t		*insn_fn;
42b2531dd5SDavid A. Long };
43b2531dd5SDavid A. Long 
44b2531dd5SDavid A. Long #endif
45