diff options
| author | Pekka Paalanen <pq@iki.fi> | 2009-01-03 14:23:51 -0500 |
|---|---|---|
| committer | Ingo Molnar <mingo@elte.hu> | 2009-02-15 14:03:28 -0500 |
| commit | 6bc5c366b1a45ca18fba6851f62db5743b3f6db5 (patch) | |
| tree | c3e2a092760b2eca5ff052cbea77cc84502b8016 | |
| parent | 391b170f10e669dd429aa47bce998c2fa839404c (diff) | |
trace: mmiotrace to the tracer menu in Kconfig
Impact: cosmetic change in Kconfig menu layout
This patch was originally suggested by Peter Zijlstra, but seems it
was forgotten.
CONFIG_MMIOTRACE and CONFIG_MMIOTRACE_TEST were selectable
directly under the Kernel hacking / debugging menu in the kernel
configuration system. They were present only for x86 and x86_64.
Other tracers that use the ftrace tracing framework are in their own
sub-menu. This patch moves the mmiotrace configuration options there.
Since the Kconfig file, where the tracer menu is, is not architecture
specific, HAVE_MMIOTRACE_SUPPORT is introduced and provided only by
x86/x86_64. CONFIG_MMIOTRACE now depends on it.
Signed-off-by: Pekka Paalanen <pq@iki.fi>
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
| -rw-r--r-- | arch/x86/Kconfig.debug | 24 | ||||
| -rw-r--r-- | kernel/trace/Kconfig | 23 |
2 files changed, 25 insertions, 22 deletions
diff --git a/arch/x86/Kconfig.debug b/arch/x86/Kconfig.debug index 10d6cc3fd052..e1983fa025d2 100644 --- a/arch/x86/Kconfig.debug +++ b/arch/x86/Kconfig.debug | |||
| @@ -174,28 +174,8 @@ config IOMMU_LEAK | |||
| 174 | Add a simple leak tracer to the IOMMU code. This is useful when you | 174 | Add a simple leak tracer to the IOMMU code. This is useful when you |
| 175 | are debugging a buggy device driver that leaks IOMMU mappings. | 175 | are debugging a buggy device driver that leaks IOMMU mappings. |
| 176 | 176 | ||
| 177 | config MMIOTRACE | 177 | config HAVE_MMIOTRACE_SUPPORT |
| 178 | bool "Memory mapped IO tracing" | 178 | def_bool y |
| 179 | depends on DEBUG_KERNEL && PCI | ||
| 180 | select TRACING | ||
| 181 | help | ||
| 182 | Mmiotrace traces Memory Mapped I/O access and is meant for | ||
| 183 | debugging and reverse engineering. It is called from the ioremap | ||
| 184 | implementation and works via page faults. Tracing is disabled by | ||
| 185 | default and can be enabled at run-time. | ||
| 186 | |||
| 187 | See Documentation/tracers/mmiotrace.txt. | ||
| 188 | If you are not helping to develop drivers, say N. | ||
| 189 | |||
| 190 | config MMIOTRACE_TEST | ||
| 191 | tristate "Test module for mmiotrace" | ||
| 192 | depends on MMIOTRACE && m | ||
| 193 | help | ||
| 194 | This is a dumb module for testing mmiotrace. It is very dangerous | ||
| 195 | as it will write garbage to IO memory starting at a given address. | ||
| 196 | However, it should be safe to use on e.g. unused portion of VRAM. | ||
| 197 | |||
| 198 | Say N, unless you absolutely know what you are doing. | ||
| 199 | 179 | ||
| 200 | # | 180 | # |
| 201 | # IO delay types: | 181 | # IO delay types: |
diff --git a/kernel/trace/Kconfig b/kernel/trace/Kconfig index e2a4ff6fc3a6..58a93fbd68aa 100644 --- a/kernel/trace/Kconfig +++ b/kernel/trace/Kconfig | |||
| @@ -302,4 +302,27 @@ config FTRACE_STARTUP_TEST | |||
| 302 | functioning properly. It will do tests on all the configured | 302 | functioning properly. It will do tests on all the configured |
| 303 | tracers of ftrace. | 303 | tracers of ftrace. |
| 304 | 304 | ||
| 305 | config MMIOTRACE | ||
| 306 | bool "Memory mapped IO tracing" | ||
| 307 | depends on HAVE_MMIOTRACE_SUPPORT && DEBUG_KERNEL && PCI | ||
| 308 | select TRACING | ||
| 309 | help | ||
| 310 | Mmiotrace traces Memory Mapped I/O access and is meant for | ||
| 311 | debugging and reverse engineering. It is called from the ioremap | ||
| 312 | implementation and works via page faults. Tracing is disabled by | ||
| 313 | default and can be enabled at run-time. | ||
| 314 | |||
| 315 | See Documentation/tracers/mmiotrace.txt. | ||
| 316 | If you are not helping to develop drivers, say N. | ||
| 317 | |||
| 318 | config MMIOTRACE_TEST | ||
| 319 | tristate "Test module for mmiotrace" | ||
| 320 | depends on MMIOTRACE && m | ||
| 321 | help | ||
| 322 | This is a dumb module for testing mmiotrace. It is very dangerous | ||
| 323 | as it will write garbage to IO memory starting at a given address. | ||
| 324 | However, it should be safe to use on e.g. unused portion of VRAM. | ||
| 325 | |||
| 326 | Say N, unless you absolutely know what you are doing. | ||
| 327 | |||
| 305 | endmenu | 328 | endmenu |
