diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2009-01-29 23:52:35 +0000 |
---|---|---|
committer | Lars-Peter Clausen <lars@metafoo.de> | 2009-01-29 23:52:35 +0000 |
commit | 521ed1454e384995c594b82d9f6c366ec93cefcd (patch) | |
tree | ad37947d89ad9b7e8a26deb2c22bdc5ccd606f82 | |
parent | 16f701a0f9b55cea6acbaad5e631c556b5274d56 (diff) | |
download | master-187ad058-521ed1454e384995c594b82d9f6c366ec93cefcd.tar.gz master-187ad058-521ed1454e384995c594b82d9f6c366ec93cefcd.tar.bz2 master-187ad058-521ed1454e384995c594b82d9f6c366ec93cefcd.zip |
Add menuconfig option for enabling profiling in the kernel.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14272 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | Config.in | 6 | ||||
-rw-r--r-- | include/kernel-defaults.mk | 1 |
2 files changed, 7 insertions, 0 deletions
@@ -124,6 +124,12 @@ config KERNEL_KALLSYMS default n help This will give you more information in stack traces from kernel oopses +config KERNEL_PROFILING + bool "Compile the kernel with profiling enabled" + default n + help + Enable the extended profiling support mechanisms used by profilers such + as OProfile. endmenu diff --git a/include/kernel-defaults.mk b/include/kernel-defaults.mk index 4aa5c0ef18..e3897a64cc 100644 --- a/include/kernel-defaults.mk +++ b/include/kernel-defaults.mk @@ -87,6 +87,7 @@ endef define Kernel/Configure/Default $(LINUX_CONFCMD) > $(LINUX_DIR)/.config.target echo "$(if $(CONFIG_KERNEL_KALLSYMS),CONFIG_KALLSYMS=y,# CONFIG_KALLSYMS is not set)" >> $(LINUX_DIR)/.config.target + echo "$(if $(CONFIG_KERNEL_PROFILING),CONFIG_PROFILING=y,# CONFIG_PROFILING is not set)" >> $(LINUX_DIR)/.config.target echo "# CONFIG_KALLSYMS_EXTRA_PASS is not set" >> $(LINUX_DIR)/.config.target echo "# CONFIG_KPROBES is not set" >> $(LINUX_DIR)/.config.target $(SCRIPT_DIR)/metadata.pl kconfig $(TMP_DIR)/.packageinfo $(TOPDIR)/.config > $(LINUX_DIR)/.config.override |