aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/Kconfig.debug28
1 files changed, 28 insertions, 0 deletions
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index b0f239e443bc..78d669b461d2 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -803,6 +803,34 @@ config FIREWIRE_OHCI_REMOTE_DMA
803 803
804 If unsure, say N. 804 If unsure, say N.
805 805
806config KMEMTRACE
807 bool "Kernel memory tracer (kmemtrace)"
808 depends on RELAY && DEBUG_FS && MARKERS
809 help
810 kmemtrace provides tracing for slab allocator functions, such as
811 kmalloc, kfree, kmem_cache_alloc, kmem_cache_free etc.. Collected
812 data is then fed to the userspace application in order to analyse
813 allocation hotspots, internal fragmentation and so on, making it
814 possible to see how well an allocator performs, as well as debug
815 and profile kernel code.
816
817 This requires an userspace application to use. See
818 Documentation/vm/kmemtrace.txt for more information.
819
820 Saying Y will make the kernel somewhat larger and slower. However,
821 if you disable kmemtrace at run-time or boot-time, the performance
822 impact is minimal (depending on the arch the kernel is built for).
823
824 If unsure, say N.
825
826config KMEMTRACE_DEFAULT_ENABLED
827 bool "Enabled by default at boot"
828 depends on KMEMTRACE
829 help
830 Say Y here to enable kmemtrace at boot-time by default. Whatever
831 the choice, the behavior can be overridden by a kernel parameter,
832 as described in documentation.
833
806menuconfig BUILD_DOCSRC 834menuconfig BUILD_DOCSRC
807 bool "Build targets in Documentation/ tree" 835 bool "Build targets in Documentation/ tree"
808 depends on HEADERS_CHECK 836 depends on HEADERS_CHECK