]> www.infradead.org Git - users/jedix/linux-maple.git/commit
radix tree test suite: add allocation counts and size to kmem_cache
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Thu, 14 Apr 2022 06:07:11 +0000 (23:07 -0700)
committerakpm <akpm@linux-foundation.org>
Thu, 14 Apr 2022 06:07:11 +0000 (23:07 -0700)
commite4717b5c91d1c8f52589e79108ec26d9525a5070
tree5f8cdf3f6273a6f819aab9d04929f6ca8597c3e9
parent541dc977e257a3e929907af4ba57757e315d1cd1
radix tree test suite: add allocation counts and size to kmem_cache

Add functions to get the number of allocations, and total allocations from
a kmem_cache.  Also add a function to get the allocated size and a way to
zero the total allocations.

Link: https://lkml.kernel.org/r/20220404143501.2016403-4-Liam.Howlett@oracle.com
Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/radix-tree/linux.c