diff options
author | K.Prasad <prasad@linux.vnet.ibm.com> | 2009-06-01 14:16:20 -0400 |
---|---|---|
committer | Frederic Weisbecker <fweisbec@gmail.com> | 2009-06-02 16:47:00 -0400 |
commit | 432039933a16b8227b7b267f46ac1c1b9b3adf14 (patch) | |
tree | 9ca2b6af261a968e2c1cccaeb0a9c89b1cb701a0 /samples/Kconfig | |
parent | 17f557e5b5d43a2af66c969f6560ac7105020672 (diff) |
hw-breakpoints: sample HW breakpoint over kernel data address
This patch introduces a sample kernel module to demonstrate the use of Hardware
Breakpoint feature. It places a breakpoint over the kernel variable 'pid_max'
to monitor all write operations and emits a function-backtrace when done.
Signed-off-by: K.Prasad <prasad@linux.vnet.ibm.com>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Diffstat (limited to 'samples/Kconfig')
-rw-r--r-- | samples/Kconfig | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/samples/Kconfig b/samples/Kconfig index b75d28cba3f7..8458516c693c 100644 --- a/samples/Kconfig +++ b/samples/Kconfig | |||
@@ -45,5 +45,11 @@ config SAMPLE_KRETPROBES | |||
45 | default m | 45 | default m |
46 | depends on SAMPLE_KPROBES && KRETPROBES | 46 | depends on SAMPLE_KPROBES && KRETPROBES |
47 | 47 | ||
48 | config SAMPLE_HW_BREAKPOINT | ||
49 | tristate "Build kernel hardware breakpoint examples -- loadable module only" | ||
50 | depends on HAVE_HW_BREAKPOINT && m | ||
51 | help | ||
52 | This builds kernel hardware breakpoint example modules. | ||
53 | |||
48 | endif # SAMPLES | 54 | endif # SAMPLES |
49 | 55 | ||