From mboxrd@z Thu Jan 1 00:00:00 1970 From: sjg at google.com Date: Fri, 10 Jan 2020 03:57:37 -0500 Subject: [PATCH 14/19] test: Add functions to find the amount of allocated memory In-Reply-To: <20191229211913.14.Iba2e53de0345ab0cf75d2f927f931a2ceb1225dd@changeid> References: <20191229211913.14.Iba2e53de0345ab0cf75d2f927f931a2ceb1225dd@changeid> <20191230041928.74874-1-sjg@chromium.org> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 --- include/test/ut.h | 16 ++++++++++++++++ test/ut.c | 14 ++++++++++++++ 2 files changed, 30 insertions(+) Applied to u-boot-dm, thanks!