[U-Boot] [PATCH 34/41] Convert CONFIG_CMD_TRACE to Kconfig
Simon Glass
sjg at chromium.org
Fri Jul 21 23:11:33 UTC 2017
This converts the following to Kconfig:
CONFIG_CMD_TRACE
Signed-off-by: Simon Glass <sjg at chromium.org>
---
cmd/Kconfig | 9 +++++++++
include/configs/exynos5-common.h | 1 -
include/configs/sandbox.h | 1 -
scripts/config_whitelist.txt | 1 -
4 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/cmd/Kconfig b/cmd/Kconfig
index 5aeefe6482..3973b9d2ea 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -1415,6 +1415,15 @@ config CMD_KGDB
single-stepping, inspecting variables, etc. This is supported only
on PowerPC at present.
+config CMD_TRACE
+ bool "trace - Support tracing of function calls and timing"
+ help
+ Enables a command to control using of function tracing within
+ U-Boot. This allows recording of call traces including timing
+ information. The command can write data to memory for exporting
+ for analsys (e.g. using bootchart). See doc/README.trace for full
+ details.
+
endmenu
config CMD_UBI
diff --git a/include/configs/exynos5-common.h b/include/configs/exynos5-common.h
index 378219d83a..1b30b882cb 100644
--- a/include/configs/exynos5-common.h
+++ b/include/configs/exynos5-common.h
@@ -17,7 +17,6 @@
#ifdef FTRACE
#define CONFIG_TRACE
-#define CONFIG_CMD_TRACE
#define CONFIG_TRACE_BUFFER_SIZE (16 << 20)
#define CONFIG_TRACE_EARLY_SIZE (8 << 20)
#define CONFIG_TRACE_EARLY
diff --git a/include/configs/sandbox.h b/include/configs/sandbox.h
index fd579f72a8..8cdd325319 100644
--- a/include/configs/sandbox.h
+++ b/include/configs/sandbox.h
@@ -8,7 +8,6 @@
#ifdef FTRACE
#define CONFIG_TRACE
-#define CONFIG_CMD_TRACE
#define CONFIG_TRACE_BUFFER_SIZE (16 << 20)
#define CONFIG_TRACE_EARLY_SIZE (8 << 20)
#define CONFIG_TRACE_EARLY
diff --git a/scripts/config_whitelist.txt b/scripts/config_whitelist.txt
index fc6b184310..a78736106b 100644
--- a/scripts/config_whitelist.txt
+++ b/scripts/config_whitelist.txt
@@ -296,7 +296,6 @@ CONFIG_CM922T_XA10
CONFIG_CMDLINE_EDITING
CONFIG_CMDLINE_PS_SUPPORT
CONFIG_CMDLINE_TAG
-CONFIG_CMD_TRACE
CONFIG_CMD_TSI148
CONFIG_CMD_UNIVERSE
CONFIG_CMD_UUID
--
2.14.0.rc0.284.gd933b75aa4-goog
More information about the U-Boot
mailing list