diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2021-06-28 09:03:45 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2021-06-28 22:36:50 +0200 |
commit | 5f30f6f58ab25a9c53a03660b8cda5ee0360bc6d (patch) | |
tree | eb749f57a6139f7f83a2b06003d6ee82cf8f4df2 /common | |
parent | 560b8961e43cab7951a10dc06380d8038f8c3794 (diff) | |
download | barebox-5f30f6f58ab25a9c53a03660b8cda5ee0360bc6d.tar.gz barebox-5f30f6f58ab25a9c53a03660b8cda5ee0360bc6d.tar.xz |
driver: add CONFIG_DEBUG_PROBES
CONFIG_DEBUG_INITCALLS can be very useful to roughly pinpoint what
causes barebox to hang. With deep probe, most probes run at the same
initcall level making the debug option much less useful.
Add a new CONFIG_DEBUG_PROBES that will instead log whenever a probe is
invoked. The text's horizontal alignment is increased with each
recursive probe making the option suitable for debugging some deep probe
issues as well.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.barebox.org/20210628070345.13838-1-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
-rw-r--r-- | common/Kconfig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common/Kconfig b/common/Kconfig index 8b8f80bbb3..1ece3f7318 100644 --- a/common/Kconfig +++ b/common/Kconfig @@ -1466,6 +1466,10 @@ config DEBUG_INITCALLS help If enabled this will print initcall traces. +config DEBUG_PROBES + bool "Trace driver probes" + help + If enabled this will print driver probe traces. config PBL_BREAK bool "Execute software break on pbl start" |