Skip to content

Commit 24ba613

Browse files
Abhishek SagarRussell King
authored andcommitted
ARM kprobes: core code
This is a full implementation of Kprobes including Jprobes and Kretprobes support. This ARM implementation does not follow the usual kprobes double- exception model. The traditional model is where the initial kprobes breakpoint calls kprobe_handler(), which returns from exception to execute the instruction in its original context, then immediately re-enters after a second breakpoint (or single-stepping exception) into post_kprobe_handler(), each time the probe is hit.. The ARM implementation only executes one kprobes exception per hit, so no post_kprobe_handler() phase. All side-effects from the kprobe'd instruction are resolved before returning from the initial exception. As a result, all instructions are _always_ effectively boosted regardless of the type of instruction, and even regardless of whether or not there is a post-handler for the probe. Signed-off-by: Abhishek Sagar <[email protected]> Signed-off-by: Quentin Barnes <[email protected]> Signed-off-by: Nicolas Pitre <[email protected]>
1 parent 35aa1df commit 24ba613

File tree

3 files changed

+483
-1
lines changed

3 files changed

+483
-1
lines changed

arch/arm/kernel/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ obj-$(CONFIG_ISA_DMA) += dma-isa.o
1919
obj-$(CONFIG_PCI) += bios32.o isa.o
2020
obj-$(CONFIG_SMP) += smp.o
2121
obj-$(CONFIG_KEXEC) += machine_kexec.o relocate_kernel.o
22-
obj-$(CONFIG_KPROBES) += kprobes-decode.o
22+
obj-$(CONFIG_KPROBES) += kprobes.o kprobes-decode.o
2323
obj-$(CONFIG_OABI_COMPAT) += sys_oabi-compat.o
2424

2525
obj-$(CONFIG_CRUNCH) += crunch.o crunch-bits.o

0 commit comments

Comments
 (0)