diff options
author | Simon Glass <sjg@chromium.org> | 2022-05-08 13:39:27 +0300 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2022-06-28 05:09:52 +0300 |
commit | 4f6500aa1a62a80e8df2ffdf16fe4c3eabd99f1c (patch) | |
tree | 6497bbf0356366fa0e94c0d577be81f12d6781f4 /drivers | |
parent | 2cb4ddb91ec9fcb77c895e4a1192a15aece700c6 (diff) | |
download | u-boot-4f6500aa1a62a80e8df2ffdf16fe4c3eabd99f1c.tar.xz |
dm: spl: Allow SPL to show memory usage
Add an option to tell SPL to show memory usage for driver model just
before it boots into the next phase.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/core/Kconfig | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/core/Kconfig b/drivers/core/Kconfig index 97dc699e96..99e28713f9 100644 --- a/drivers/core/Kconfig +++ b/drivers/core/Kconfig @@ -86,6 +86,16 @@ config DM_STATS To display the memory stats, use the 'dm mem' command. +config SPL_DM_STATS + bool "Collect and show driver model stats in SPL" + depends on DM_SPL + help + Enable this to collect and display memory statistics about driver + model. This can help to figure out where all the memory is going and + to find optimisations. + + The stats are displayed just before SPL boots to the next phase. + config DM_DEVICE_REMOVE bool "Support device removal" depends on DM |