Skip to content

Commit c18377c

Browse files
author
David A. Long
committed
ARM: Move generic arm instruction parsing code to new files for sharing between features
Move the arm version of the kprobes instruction parsing code into more generic files from where it can be used by uprobes and possibly other subsystems. The symbol names will be made more generic in a subsequent part of this patchset. Signed-off-by: David A. Long <dave.long@linaro.org> Acked-by: Jon Medhurst <tixy@linaro.org>
1 parent b2531dd commit c18377c

9 files changed

Lines changed: 1624 additions & 1513 deletions

File tree

‎arch/arm/include/asm/probes.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
#ifndef _ASM_PROBES_H
2020
#define _ASM_PROBES_H
2121

22+
struct kprobe;
23+
2224
typedef void (kprobe_insn_handler_t)(struct kprobe *, struct pt_regs *);
2325
typedef unsigned long (kprobe_check_cc)(unsigned long);
2426
typedef void (kprobe_insn_singlestep_t)(struct kprobe *, struct pt_regs *);

‎arch/arm/kernel/Makefile‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ obj-$(CONFIG_DYNAMIC_FTRACE) += ftrace.o insn.o
5050
obj-$(CONFIG_FUNCTION_GRAPH_TRACER) += ftrace.o insn.o
5151
obj-$(CONFIG_JUMP_LABEL) += jump_label.o insn.o patch.o
5252
obj-$(CONFIG_KEXEC) += machine_kexec.o relocate_kernel.o
53-
obj-$(CONFIG_KPROBES) += kprobes.o kprobes-common.o patch.o
53+
obj-$(CONFIG_KPROBES) += probes.o kprobes.o kprobes-common.o patch.o
5454
ifdef CONFIG_THUMB2_KERNEL
5555
obj-$(CONFIG_KPROBES) += kprobes-thumb.o
5656
else
57-
obj-$(CONFIG_KPROBES) += kprobes-arm.o
57+
obj-$(CONFIG_KPROBES) += kprobes-arm.o probes-arm.o
5858
endif
5959
obj-$(CONFIG_ARM_KPROBES_TEST) += test-kprobes.o
6060
test-kprobes-objs := kprobes-test.o

0 commit comments

Comments
 (0)