]> git.baikalelectronics.ru Git - uboot.git/commit
test: Add functions to find the amount of allocated memory
authorSimon Glass <sjg@chromium.org>
Mon, 30 Dec 2019 04:19:23 +0000 (21:19 -0700)
committerSimon Glass <sjg@chromium.org>
Tue, 7 Jan 2020 23:02:38 +0000 (16:02 -0700)
commit50d00da16bd865b7de0b3ecad7060a5695395f40
tree20f07f01be8decdace7d737f37113ebc4158d5dc
parent57cf19416f29aa1db0df6b2487ad5e23c3cacb32
test: Add functions to find the amount of allocated memory

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 <sjg@chromium.org>
include/test/ut.h
test/ut.c