Add menuconfig option for enabling profiling in the kernel.
SVN-Revision: 14272
This commit is contained in:
parent
db059cc0ff
commit
24f02449ff
2 changed files with 7 additions and 0 deletions
|
@ -124,6 +124,12 @@ config KERNEL_KALLSYMS
|
||||||
default n
|
default n
|
||||||
help
|
help
|
||||||
This will give you more information in stack traces from kernel oopses
|
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
|
endmenu
|
||||||
|
|
||||||
|
|
|
@ -87,6 +87,7 @@ endef
|
||||||
define Kernel/Configure/Default
|
define Kernel/Configure/Default
|
||||||
$(LINUX_CONFCMD) > $(LINUX_DIR)/.config.target
|
$(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_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_KALLSYMS_EXTRA_PASS is not set" >> $(LINUX_DIR)/.config.target
|
||||||
echo "# CONFIG_KPROBES 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
|
$(SCRIPT_DIR)/metadata.pl kconfig $(TMP_DIR)/.packageinfo $(TOPDIR)/.config > $(LINUX_DIR)/.config.override
|
||||||
|
|
Loading…
Reference in a new issue