mirror of
https://github.com/smaeul/u-boot.git
synced 2025-10-14 21:06:01 +01:00
trace: sandbox: Use only the Kconfig options
At present there are Kconfig options for tracing, but sandbox uses plain #defines to set them. Correct this and make the tracing command default to enabled so that this is not needed. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
5bf8121646
commit
89050244c4
@ -2350,6 +2350,8 @@ config CMD_LOG
|
|||||||
|
|
||||||
config CMD_TRACE
|
config CMD_TRACE
|
||||||
bool "trace - Support tracing of function calls and timing"
|
bool "trace - Support tracing of function calls and timing"
|
||||||
|
depends on TRACE
|
||||||
|
default y
|
||||||
help
|
help
|
||||||
Enables a command to control using of function tracing within
|
Enables a command to control using of function tracing within
|
||||||
U-Boot. This allows recording of call traces including timing
|
U-Boot. This allows recording of call traces including timing
|
||||||
|
@ -30,16 +30,11 @@ Sandbox is a build of U-Boot that can run under Linux so it is a convenient
|
|||||||
way of trying out tracing before you use it on your actual board. To do
|
way of trying out tracing before you use it on your actual board. To do
|
||||||
this, follow these steps:
|
this, follow these steps:
|
||||||
|
|
||||||
Add the following to include/configs/sandbox.h (if not already there)
|
Add the following to config/sandbox_defconfig
|
||||||
|
|
||||||
.. code-block:: c
|
.. code-block:: c
|
||||||
|
|
||||||
#define CONFIG_TRACE
|
CONFIG_TRACE=y
|
||||||
#define CONFIG_CMD_TRACE
|
|
||||||
#define CONFIG_TRACE_BUFFER_SIZE (16 << 20)
|
|
||||||
#define CONFIG_TRACE_EARLY_SIZE (8 << 20)
|
|
||||||
#define CONFIG_TRACE_EARLY
|
|
||||||
#define CONFIG_TRACE_EARLY_ADDR 0x00100000
|
|
||||||
|
|
||||||
Build sandbox U-Boot with tracing enabled:
|
Build sandbox U-Boot with tracing enabled:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user