summaryrefslogtreecommitdiff
path: root/common/Kconfig
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2025-10-01 14:30:52 -0600
committerTom Rini <[email protected]>2025-10-10 14:25:24 -0600
commit16bbc225fed7931988616ba4e223954ae5ccc06b (patch)
tree52f02214484508f987e97e992655715961563aa8 /common/Kconfig
parentb30155c08e95550296668766bfd7d3da27c970fe (diff)
iotrace: Finish migrating this to Kconfig
When I migrated this to Kconfig in commit 68e54040ccc3 ("sandbox: Move CONFIG_IO_TRACE to Kconfig") I didn't look hard enough for other details. As explained in the README, this is valid for ARM too. So start by making this be a prompted question and CMD_IOTRACE depend on IO_TRACE being enabled. Next, migrate the information out of README and in to the appropriate help text for existing options in Kconfig. Finally, make this option be default y on SANDBOX but not selected as it's valid to build without it. Signed-off-by: Tom Rini <[email protected]>
Diffstat (limited to 'common/Kconfig')
-rw-r--r--common/Kconfig11
1 files changed, 10 insertions, 1 deletions
diff --git a/common/Kconfig b/common/Kconfig
index 30bf225362e..0c25a8fc866 100644
--- a/common/Kconfig
+++ b/common/Kconfig
@@ -1264,4 +1264,13 @@ config VPL_IMAGE_SIGN_INFO
endif
config IO_TRACE
- bool
+ bool "Intercept and checksum all I/O accesses"
+ depends on ARM || SANDBOX
+ default y if SANDBOX
+ help
+ When enabled, U-Boot intercepts all I/O accesses and can checksum
+ them or write a list of them out to memory. See the 'iotrace' command
+ for details. This is useful for testing device drivers since it can
+ confirm that the driver behaves the same way before and after a code
+ change. To add support for your architecture, add '#include
+ <iotrace.h>' to the bottom of arch/<arch>/include/asm/io.h and test.