2 * arch/arm/kernel/kprobes.h
4 * Copyright (C) 2011 Jon Medhurst <tixy@yxit.co.uk>.
6 * Some contents moved here from arch/arm/include/asm/kprobes.h which is
7 * Copyright (C) 2006, 2007 Motorola Inc.
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License version 2 as
11 * published by the Free Software Foundation.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * General Public License for more details.
19 #ifndef _ARM_KERNEL_KPROBES_H
20 #define _ARM_KERNEL_KPROBES_H
23 * These undefined instructions must be unique and
24 * reserved solely for kprobes' use.
26 #define KPROBE_ARM_BREAKPOINT_INSTRUCTION 0x07f001f8
27 #define KPROBE_THUMB16_BREAKPOINT_INSTRUCTION 0xde18
28 #define KPROBE_THUMB32_BREAKPOINT_INSTRUCTION 0xf7f0a018
33 typedef enum probes_insn (kprobe_decode_insn_t
)(probes_opcode_t
,
34 struct arch_specific_insn
*,
35 const union decode_action
*);
37 #ifdef CONFIG_THUMB2_KERNEL
39 enum probes_insn
thumb16_kprobe_decode_insn(probes_opcode_t
,
40 struct arch_specific_insn
*,
41 const union decode_action
*);
42 enum probes_insn
thumb32_kprobe_decode_insn(probes_opcode_t
,
43 struct arch_specific_insn
*,
44 const union decode_action
*);
46 #else /* !CONFIG_THUMB2_KERNEL */
48 enum probes_insn
arm_kprobe_decode_insn(probes_opcode_t
,
49 struct arch_specific_insn
*,
50 const union decode_action
*);
56 #endif /* _ARM_KERNEL_KPROBES_H */
This page took 0.034803 seconds and 5 git commands to generate.