Преглед изворни кода

ARM kprobes: let's enable it

Signed-off-by: Nicolas Pitre <nico@marvell.com>
Nicolas Pitre пре 17 година
родитељ
комит
5de865b4c5
2 измењених фајлова са 11 додато и 0 уклоњено
  1. 1 0
      Documentation/kprobes.txt
  2. 10 0
      arch/arm/Kconfig.instrumentation

+ 1 - 0
Documentation/kprobes.txt

@@ -141,6 +141,7 @@ architectures:
 - ppc64
 - ia64 (Does not support probes on instruction slot1.)
 - sparc64 (Return probes not yet implemented.)
+- arm
 
 3. Configuring Kprobes
 

+ 10 - 0
arch/arm/Kconfig.instrumentation

@@ -43,6 +43,16 @@ config OPROFILE_MPCORE
 config OPROFILE_ARM11_CORE
 	bool
 
+config KPROBES
+	bool "Kprobes"
+	depends on KALLSYMS && MODULES && !UML && !XIP_KERNEL
+	help
+	  Kprobes allows you to trap at almost any kernel address and
+	  execute a callback function.  register_kprobe() establishes
+	  a probepoint and specifies the callback.  Kprobes is useful
+	  for kernel debugging, non-intrusive instrumentation and testing.
+	  If in doubt, say "N".
+
 config MARKERS
 	bool "Activate markers"
 	help