diff options
author | Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com> | 2012-09-28 04:15:20 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2013-01-21 13:22:36 -0500 |
commit | e7dbfe349d12eabb7783b117e0c115f6f3d9ef9e (patch) | |
tree | 8b567abaef12e5bb82171eea70e7f02816958ae9 /arch/Kconfig | |
parent | 06aeaaeabf69da4a3e86df532425640f51b01cef (diff) |
kprobes/x86: Move ftrace-based kprobe code into kprobes-ftrace.c
Split ftrace-based kprobes code from kprobes, and introduce
CONFIG_(HAVE_)KPROBES_ON_FTRACE Kconfig flags.
For the cleanup reason, this also moves kprobe_ftrace check
into skip_singlestep.
Link: http://lkml.kernel.org/r/20120928081520.3560.25624.stgit@ltc138.sdl.hitachi.co.jp
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Signed-off-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'arch/Kconfig')
-rw-r--r-- | arch/Kconfig | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/Kconfig b/arch/Kconfig index 7f8f281f2585..97fb7d0365d1 100644 --- a/arch/Kconfig +++ b/arch/Kconfig | |||
@@ -76,6 +76,15 @@ config OPTPROBES | |||
76 | depends on KPROBES && HAVE_OPTPROBES | 76 | depends on KPROBES && HAVE_OPTPROBES |
77 | depends on !PREEMPT | 77 | depends on !PREEMPT |
78 | 78 | ||
79 | config KPROBES_ON_FTRACE | ||
80 | def_bool y | ||
81 | depends on KPROBES && HAVE_KPROBES_ON_FTRACE | ||
82 | depends on DYNAMIC_FTRACE_WITH_REGS | ||
83 | help | ||
84 | If function tracer is enabled and the arch supports full | ||
85 | passing of pt_regs to function tracing, then kprobes can | ||
86 | optimize on top of function tracing. | ||
87 | |||
79 | config UPROBES | 88 | config UPROBES |
80 | bool "Transparent user-space probes (EXPERIMENTAL)" | 89 | bool "Transparent user-space probes (EXPERIMENTAL)" |
81 | depends on UPROBE_EVENT && PERF_EVENTS | 90 | depends on UPROBE_EVENT && PERF_EVENTS |
@@ -158,6 +167,9 @@ config HAVE_KRETPROBES | |||
158 | config HAVE_OPTPROBES | 167 | config HAVE_OPTPROBES |
159 | bool | 168 | bool |
160 | 169 | ||
170 | config HAVE_KPROBES_ON_FTRACE | ||
171 | bool | ||
172 | |||
161 | config HAVE_NMI_WATCHDOG | 173 | config HAVE_NMI_WATCHDOG |
162 | bool | 174 | bool |
163 | # | 175 | # |