[PATCH 7/9] dm: core: Add a way to collect memory usage

Simon Glass sjg at chromium.org
Tue Jun 28 15:37:54 CEST 2022


Add a function for collecting the amount of memory used by driver model,
including devices, uclasses and attached data and tags.

This information can provide insights into how to reduce the memory
required by driver model. Future work may look at execution speed also.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 drivers/core/root.c | 53 +++++++++++++++++++++++++++++++++++++++++++++
 drivers/core/tag.c  | 11 ++++++++++
 include/dm/root.h   | 45 ++++++++++++++++++++++++++++++++++++++
 include/dm/tag.h    | 11 ++++++++++
 test/dm/core.c      | 11 ++++++++++
 5 files changed, 131 insertions(+)

Applied to u-boot-dm, thanks!


More information about the U-Boot mailing list