aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/testing/memblock/Makefile
diff options
context:
space:
mode:
authorKarolina Drobnik <karolinadrobnik@gmail.com>2022-02-28 15:46:45 +0100
committerMike Rapoport <rppt@linux.ibm.com>2022-03-09 15:53:18 +0200
commit142eac65f3e04577451a40b3cc57e708311eed01 (patch)
tree6c445bd9fab807253b33593d3d49195ea1db85e8 /tools/testing/memblock/Makefile
parentmemblock tests: Add simulation of physical memory (diff)
downloadwireguard-linux-142eac65f3e04577451a40b3cc57e708311eed01.tar.xz
wireguard-linux-142eac65f3e04577451a40b3cc57e708311eed01.zip
memblock tests: Add memblock_alloc tests for top down
Add checks for memblock_alloc for top down allocation direction. The tested scenarios are: - Region can be allocated on the first fit (with and without region merging) - Region can be allocated on the second fit (with and without region merging) Add checks for both allocation directions: - Region can be allocated between two already existing entries - Limited memory available - All memory is reserved - No available memory registered with memblock Signed-off-by: Karolina Drobnik <karolinadrobnik@gmail.com> Signed-off-by: Mike Rapoport <rppt@linux.ibm.com> Link: https://lore.kernel.org/r/26ccf409b8ff0394559d38d792b2afb24b55887c.1646055639.git.karolinadrobnik@gmail.com
Diffstat (limited to 'tools/testing/memblock/Makefile')
-rw-r--r--tools/testing/memblock/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/memblock/Makefile b/tools/testing/memblock/Makefile
index 29715327a2d3..5b01cfd808d0 100644
--- a/tools/testing/memblock/Makefile
+++ b/tools/testing/memblock/Makefile
@@ -6,7 +6,7 @@ CFLAGS += -I. -I../../include -Wall -O2 -fsanitize=address \
-fsanitize=undefined -D CONFIG_PHYS_ADDR_T_64BIT
LDFLAGS += -fsanitize=address -fsanitize=undefined
TARGETS = main
-TEST_OFILES = tests/basic_api.o tests/common.o
+TEST_OFILES = tests/alloc_api.o tests/basic_api.o tests/common.o
DEP_OFILES = memblock.o lib/slab.o mmzone.o slab.o
OFILES = main.o $(DEP_OFILES) $(TEST_OFILES)
EXTR_SRC = ../../../mm/memblock.c