]> git.baikalelectronics.ru Git - uboot.git/commit
dm: core: Add a way to collect memory usage
authorSimon Glass <sjg@chromium.org>
Sun, 8 May 2022 10:39:25 +0000 (04:39 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 28 Jun 2022 02:09:52 +0000 (03:09 +0100)
commitcaf5e15715ab720c793a8b06da5af3b43ab94413
treebc1741d705ae3a62c98477e510535d3193c97802
parentbda309f4efdac7875d8561472c34e30849c9f84e
dm: core: Add a way to collect memory usage

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@chromium.org>
drivers/core/root.c
drivers/core/tag.c
include/dm/root.h
include/dm/tag.h
test/dm/core.c