diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-03-05 15:19:55 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-03-05 15:53:25 -0500 |
commit | 40ada30f9621fbd831ac2437b9a2a399aad34b00 (patch) | |
tree | 47df1abc756d9ce33feec3eb5bb601edafbcf14c | |
parent | 526211bc58c4b3265352801c5a7f469af5c34711 (diff) |
tracing: clean up menu
Clean up menu structure, introduce TRACING_SUPPORT switch that signals
whether an architecture supports various instrumentation mechanisms.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r-- | arch/Kconfig | 1 | ||||
-rw-r--r-- | kernel/trace/Kconfig | 29 |
2 files changed, 17 insertions, 13 deletions
diff --git a/arch/Kconfig b/arch/Kconfig index 550dab22daa1..a092dc77c24d 100644 --- a/arch/Kconfig +++ b/arch/Kconfig | |||
@@ -6,6 +6,7 @@ config OPROFILE | |||
6 | tristate "OProfile system profiling (EXPERIMENTAL)" | 6 | tristate "OProfile system profiling (EXPERIMENTAL)" |
7 | depends on PROFILING | 7 | depends on PROFILING |
8 | depends on HAVE_OPROFILE | 8 | depends on HAVE_OPROFILE |
9 | depends on TRACING_SUPPORT | ||
9 | select TRACING | 10 | select TRACING |
10 | select RING_BUFFER | 11 | select RING_BUFFER |
11 | help | 12 | help |
diff --git a/kernel/trace/Kconfig b/kernel/trace/Kconfig index 999c6a2485df..5d733da5345a 100644 --- a/kernel/trace/Kconfig +++ b/kernel/trace/Kconfig | |||
@@ -53,12 +53,22 @@ config TRACING | |||
53 | select TRACEPOINTS | 53 | select TRACEPOINTS |
54 | select NOP_TRACER | 54 | select NOP_TRACER |
55 | 55 | ||
56 | # | ||
57 | # Minimum requirements an architecture has to meet for us to | ||
58 | # be able to offer generic tracing facilities: | ||
59 | # | ||
60 | config TRACING_SUPPORT | ||
61 | bool | ||
62 | depends on TRACE_IRQFLAGS_SUPPORT | ||
63 | depends on STACKTRACE_SUPPORT | ||
64 | |||
65 | if TRACING_SUPPORT | ||
66 | |||
56 | menu "Tracers" | 67 | menu "Tracers" |
57 | 68 | ||
58 | config FUNCTION_TRACER | 69 | config FUNCTION_TRACER |
59 | bool "Kernel Function Tracer" | 70 | bool "Kernel Function Tracer" |
60 | depends on HAVE_FUNCTION_TRACER | 71 | depends on HAVE_FUNCTION_TRACER |
61 | depends on DEBUG_KERNEL | ||
62 | select FRAME_POINTER | 72 | select FRAME_POINTER |
63 | select KALLSYMS | 73 | select KALLSYMS |
64 | select TRACING | 74 | select TRACING |
@@ -91,7 +101,6 @@ config IRQSOFF_TRACER | |||
91 | default n | 101 | default n |
92 | depends on TRACE_IRQFLAGS_SUPPORT | 102 | depends on TRACE_IRQFLAGS_SUPPORT |
93 | depends on GENERIC_TIME | 103 | depends on GENERIC_TIME |
94 | depends on DEBUG_KERNEL | ||
95 | select TRACE_IRQFLAGS | 104 | select TRACE_IRQFLAGS |
96 | select TRACING | 105 | select TRACING |
97 | select TRACER_MAX_TRACE | 106 | select TRACER_MAX_TRACE |
@@ -114,7 +123,6 @@ config PREEMPT_TRACER | |||
114 | default n | 123 | default n |
115 | depends on GENERIC_TIME | 124 | depends on GENERIC_TIME |
116 | depends on PREEMPT | 125 | depends on PREEMPT |
117 | depends on DEBUG_KERNEL | ||
118 | select TRACING | 126 | select TRACING |
119 | select TRACER_MAX_TRACE | 127 | select TRACER_MAX_TRACE |
120 | help | 128 | help |
@@ -142,7 +150,6 @@ config SYSPROF_TRACER | |||
142 | 150 | ||
143 | config SCHED_TRACER | 151 | config SCHED_TRACER |
144 | bool "Scheduling Latency Tracer" | 152 | bool "Scheduling Latency Tracer" |
145 | depends on DEBUG_KERNEL | ||
146 | select TRACING | 153 | select TRACING |
147 | select CONTEXT_SWITCH_TRACER | 154 | select CONTEXT_SWITCH_TRACER |
148 | select TRACER_MAX_TRACE | 155 | select TRACER_MAX_TRACE |
@@ -152,7 +159,6 @@ config SCHED_TRACER | |||
152 | 159 | ||
153 | config CONTEXT_SWITCH_TRACER | 160 | config CONTEXT_SWITCH_TRACER |
154 | bool "Trace process context switches" | 161 | bool "Trace process context switches" |
155 | depends on DEBUG_KERNEL | ||
156 | select TRACING | 162 | select TRACING |
157 | select MARKERS | 163 | select MARKERS |
158 | help | 164 | help |
@@ -161,7 +167,6 @@ config CONTEXT_SWITCH_TRACER | |||
161 | 167 | ||
162 | config EVENT_TRACER | 168 | config EVENT_TRACER |
163 | bool "Trace various events in the kernel" | 169 | bool "Trace various events in the kernel" |
164 | depends on DEBUG_KERNEL | ||
165 | select TRACING | 170 | select TRACING |
166 | help | 171 | help |
167 | This tracer hooks to various trace points in the kernel | 172 | This tracer hooks to various trace points in the kernel |
@@ -170,7 +175,6 @@ config EVENT_TRACER | |||
170 | 175 | ||
171 | config BOOT_TRACER | 176 | config BOOT_TRACER |
172 | bool "Trace boot initcalls" | 177 | bool "Trace boot initcalls" |
173 | depends on DEBUG_KERNEL | ||
174 | select TRACING | 178 | select TRACING |
175 | select CONTEXT_SWITCH_TRACER | 179 | select CONTEXT_SWITCH_TRACER |
176 | help | 180 | help |
@@ -188,7 +192,6 @@ config BOOT_TRACER | |||
188 | 192 | ||
189 | config TRACE_BRANCH_PROFILING | 193 | config TRACE_BRANCH_PROFILING |
190 | bool "Trace likely/unlikely profiler" | 194 | bool "Trace likely/unlikely profiler" |
191 | depends on DEBUG_KERNEL | ||
192 | select TRACING | 195 | select TRACING |
193 | help | 196 | help |
194 | This tracer profiles all the the likely and unlikely macros | 197 | This tracer profiles all the the likely and unlikely macros |
@@ -241,7 +244,6 @@ config BRANCH_TRACER | |||
241 | 244 | ||
242 | config POWER_TRACER | 245 | config POWER_TRACER |
243 | bool "Trace power consumption behavior" | 246 | bool "Trace power consumption behavior" |
244 | depends on DEBUG_KERNEL | ||
245 | depends on X86 | 247 | depends on X86 |
246 | select TRACING | 248 | select TRACING |
247 | help | 249 | help |
@@ -253,7 +255,6 @@ config POWER_TRACER | |||
253 | config STACK_TRACER | 255 | config STACK_TRACER |
254 | bool "Trace max stack" | 256 | bool "Trace max stack" |
255 | depends on HAVE_FUNCTION_TRACER | 257 | depends on HAVE_FUNCTION_TRACER |
256 | depends on DEBUG_KERNEL | ||
257 | select FUNCTION_TRACER | 258 | select FUNCTION_TRACER |
258 | select STACKTRACE | 259 | select STACKTRACE |
259 | select KALLSYMS | 260 | select KALLSYMS |
@@ -343,7 +344,6 @@ config DYNAMIC_FTRACE | |||
343 | bool "enable/disable ftrace tracepoints dynamically" | 344 | bool "enable/disable ftrace tracepoints dynamically" |
344 | depends on FUNCTION_TRACER | 345 | depends on FUNCTION_TRACER |
345 | depends on HAVE_DYNAMIC_FTRACE | 346 | depends on HAVE_DYNAMIC_FTRACE |
346 | depends on DEBUG_KERNEL | ||
347 | default y | 347 | default y |
348 | help | 348 | help |
349 | This option will modify all the calls to ftrace dynamically | 349 | This option will modify all the calls to ftrace dynamically |
@@ -369,7 +369,7 @@ config FTRACE_SELFTEST | |||
369 | 369 | ||
370 | config FTRACE_STARTUP_TEST | 370 | config FTRACE_STARTUP_TEST |
371 | bool "Perform a startup test on ftrace" | 371 | bool "Perform a startup test on ftrace" |
372 | depends on TRACING && DEBUG_KERNEL | 372 | depends on TRACING |
373 | select FTRACE_SELFTEST | 373 | select FTRACE_SELFTEST |
374 | help | 374 | help |
375 | This option performs a series of startup tests on ftrace. On bootup | 375 | This option performs a series of startup tests on ftrace. On bootup |
@@ -379,7 +379,7 @@ config FTRACE_STARTUP_TEST | |||
379 | 379 | ||
380 | config MMIOTRACE | 380 | config MMIOTRACE |
381 | bool "Memory mapped IO tracing" | 381 | bool "Memory mapped IO tracing" |
382 | depends on HAVE_MMIOTRACE_SUPPORT && DEBUG_KERNEL && PCI | 382 | depends on HAVE_MMIOTRACE_SUPPORT && PCI |
383 | select TRACING | 383 | select TRACING |
384 | help | 384 | help |
385 | Mmiotrace traces Memory Mapped I/O access and is meant for | 385 | Mmiotrace traces Memory Mapped I/O access and is meant for |
@@ -401,3 +401,6 @@ config MMIOTRACE_TEST | |||
401 | Say N, unless you absolutely know what you are doing. | 401 | Say N, unless you absolutely know what you are doing. |
402 | 402 | ||
403 | endmenu | 403 | endmenu |
404 | |||
405 | endif # TRACING_SUPPORT | ||
406 | |||