diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-09-07 02:19:51 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-09-07 02:19:51 -0400 |
commit | a1922ed661ab2c1637d0b10cde933bd9cd33d965 (patch) | |
tree | 0f1777542b385ebefd30b3586d830fd8ed6fda5b /kernel/trace/Kconfig | |
parent | 75e33751ca8bbb72dd6f1a74d2810ddc8cbe4bdf (diff) | |
parent | d28daf923ac5e4a0d7cecebae56f3e339189366b (diff) |
Merge branch 'tracing/core' into tracing/hw-breakpoints
Conflicts:
arch/Kconfig
kernel/trace/trace.h
Merge reason: resolve the conflicts, plus adopt to the new
ring-buffer APIs.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/trace/Kconfig')
-rw-r--r-- | kernel/trace/Kconfig | 27 |
1 files changed, 21 insertions, 6 deletions
diff --git a/kernel/trace/Kconfig b/kernel/trace/Kconfig index ae048a2dbbe8..5efeb4229ea0 100644 --- a/kernel/trace/Kconfig +++ b/kernel/trace/Kconfig | |||
@@ -18,6 +18,13 @@ config HAVE_FUNCTION_TRACER | |||
18 | config HAVE_FUNCTION_GRAPH_TRACER | 18 | config HAVE_FUNCTION_GRAPH_TRACER |
19 | bool | 19 | bool |
20 | 20 | ||
21 | config HAVE_FUNCTION_GRAPH_FP_TEST | ||
22 | bool | ||
23 | help | ||
24 | An arch may pass in a unique value (frame pointer) to both the | ||
25 | entering and exiting of a function. On exit, the value is compared | ||
26 | and if it does not match, then it will panic the kernel. | ||
27 | |||
21 | config HAVE_FUNCTION_TRACE_MCOUNT_TEST | 28 | config HAVE_FUNCTION_TRACE_MCOUNT_TEST |
22 | bool | 29 | bool |
23 | help | 30 | help |
@@ -34,7 +41,7 @@ config HAVE_FTRACE_MCOUNT_RECORD | |||
34 | config HAVE_HW_BRANCH_TRACER | 41 | config HAVE_HW_BRANCH_TRACER |
35 | bool | 42 | bool |
36 | 43 | ||
37 | config HAVE_FTRACE_SYSCALLS | 44 | config HAVE_SYSCALL_TRACEPOINTS |
38 | bool | 45 | bool |
39 | 46 | ||
40 | config TRACER_MAX_TRACE | 47 | config TRACER_MAX_TRACE |
@@ -53,9 +60,14 @@ config EVENT_TRACING | |||
53 | bool | 60 | bool |
54 | 61 | ||
55 | config CONTEXT_SWITCH_TRACER | 62 | config CONTEXT_SWITCH_TRACER |
56 | select MARKERS | ||
57 | bool | 63 | bool |
58 | 64 | ||
65 | config RING_BUFFER_ALLOW_SWAP | ||
66 | bool | ||
67 | help | ||
68 | Allow the use of ring_buffer_swap_cpu. | ||
69 | Adds a very slight overhead to tracing when enabled. | ||
70 | |||
59 | # All tracer options should select GENERIC_TRACER. For those options that are | 71 | # All tracer options should select GENERIC_TRACER. For those options that are |
60 | # enabled by all tracers (context switch and event tracer) they select TRACING. | 72 | # enabled by all tracers (context switch and event tracer) they select TRACING. |
61 | # This allows those options to appear when no other tracer is selected. But the | 73 | # This allows those options to appear when no other tracer is selected. But the |
@@ -121,6 +133,7 @@ config FUNCTION_GRAPH_TRACER | |||
121 | bool "Kernel Function Graph Tracer" | 133 | bool "Kernel Function Graph Tracer" |
122 | depends on HAVE_FUNCTION_GRAPH_TRACER | 134 | depends on HAVE_FUNCTION_GRAPH_TRACER |
123 | depends on FUNCTION_TRACER | 135 | depends on FUNCTION_TRACER |
136 | depends on !X86_32 || !CC_OPTIMIZE_FOR_SIZE | ||
124 | default y | 137 | default y |
125 | help | 138 | help |
126 | Enable the kernel to trace a function at both its return | 139 | Enable the kernel to trace a function at both its return |
@@ -139,6 +152,7 @@ config IRQSOFF_TRACER | |||
139 | select TRACE_IRQFLAGS | 152 | select TRACE_IRQFLAGS |
140 | select GENERIC_TRACER | 153 | select GENERIC_TRACER |
141 | select TRACER_MAX_TRACE | 154 | select TRACER_MAX_TRACE |
155 | select RING_BUFFER_ALLOW_SWAP | ||
142 | help | 156 | help |
143 | This option measures the time spent in irqs-off critical | 157 | This option measures the time spent in irqs-off critical |
144 | sections, with microsecond accuracy. | 158 | sections, with microsecond accuracy. |
@@ -160,6 +174,7 @@ config PREEMPT_TRACER | |||
160 | depends on PREEMPT | 174 | depends on PREEMPT |
161 | select GENERIC_TRACER | 175 | select GENERIC_TRACER |
162 | select TRACER_MAX_TRACE | 176 | select TRACER_MAX_TRACE |
177 | select RING_BUFFER_ALLOW_SWAP | ||
163 | help | 178 | help |
164 | This option measures the time spent in preemption off critical | 179 | This option measures the time spent in preemption off critical |
165 | sections, with microsecond accuracy. | 180 | sections, with microsecond accuracy. |
@@ -203,7 +218,7 @@ config ENABLE_DEFAULT_TRACERS | |||
203 | 218 | ||
204 | config FTRACE_SYSCALLS | 219 | config FTRACE_SYSCALLS |
205 | bool "Trace syscalls" | 220 | bool "Trace syscalls" |
206 | depends on HAVE_FTRACE_SYSCALLS | 221 | depends on HAVE_SYSCALL_TRACEPOINTS |
207 | select GENERIC_TRACER | 222 | select GENERIC_TRACER |
208 | select KALLSYMS | 223 | select KALLSYMS |
209 | help | 224 | help |
@@ -218,13 +233,13 @@ config BOOT_TRACER | |||
218 | the timings of the initcalls and traces key events and the identity | 233 | the timings of the initcalls and traces key events and the identity |
219 | of tasks that can cause boot delays, such as context-switches. | 234 | of tasks that can cause boot delays, such as context-switches. |
220 | 235 | ||
221 | Its aim is to be parsed by the /scripts/bootgraph.pl tool to | 236 | Its aim is to be parsed by the scripts/bootgraph.pl tool to |
222 | produce pretty graphics about boot inefficiencies, giving a visual | 237 | produce pretty graphics about boot inefficiencies, giving a visual |
223 | representation of the delays during initcalls - but the raw | 238 | representation of the delays during initcalls - but the raw |
224 | /debug/tracing/trace text output is readable too. | 239 | /debug/tracing/trace text output is readable too. |
225 | 240 | ||
226 | You must pass in ftrace=initcall to the kernel command line | 241 | You must pass in initcall_debug and ftrace=initcall to the kernel |
227 | to enable this on bootup. | 242 | command line to enable this on bootup. |
228 | 243 | ||
229 | config TRACE_BRANCH_PROFILING | 244 | config TRACE_BRANCH_PROFILING |
230 | bool | 245 | bool |