The malloc() implementations provides a way of finding out the approximate amount of memory that is allocated. Add helper functions to make it easier to access this and see changes over time. This is useful for tests that want to check if memory has been allocated or freed.
Signed-off-by: Simon Glass <s...@chromium.org> --- include/test/ut.h | 16 ++++++++++++++++ test/ut.c | 14 ++++++++++++++ 2 files changed, 30 insertions(+) Applied to u-boot-dm, thanks!