diff options
| author | Karolina Drobnik <karolinadrobnik@gmail.com> | 2022-02-28 15:46:47 +0100 |
|---|---|---|
| committer | Mike Rapoport <rppt@linux.ibm.com> | 2022-03-09 15:54:03 +0200 |
| commit | 16567b5f30f6ea13a78a3b553e0c9c0c1ba34e64 (patch) | |
| tree | 30a66b9502b7d8a55000e2e90d6605f6b1c0edad /tools/testing/memblock/Makefile | |
| parent | 0237ee2388703cf72d1e1f9ea0c73c054582f30d (diff) | |
| download | linux-next-16567b5f30f6ea13a78a3b553e0c9c0c1ba34e64.tar.gz linux-next-16567b5f30f6ea13a78a3b553e0c9c0c1ba34e64.zip | |
memblock tests: Add memblock_alloc_from tests for top down
Add checks for memblock_alloc_from for default allocation direction.
The tested scenarios are:
- Not enough space to allocate memory at the minimal address
- Minimal address parameter is smaller than the start address
of the available memory
- Minimal address is too close to the available memory
Add simple memblock_alloc_from test that can be used to test both
allocation directions (minimal address is aligned or misaligned).
Signed-off-by: Karolina Drobnik <karolinadrobnik@gmail.com>
Signed-off-by: Mike Rapoport <rppt@linux.ibm.com>
Link: https://lore.kernel.org/r/3dd645f437975fd393010b95b8faa85d2b86490a.1646055639.git.karolinadrobnik@gmail.com
Diffstat (limited to 'tools/testing/memblock/Makefile')
| -rw-r--r-- | tools/testing/memblock/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/testing/memblock/Makefile b/tools/testing/memblock/Makefile index 5b01cfd808d0..89e374470009 100644 --- a/tools/testing/memblock/Makefile +++ b/tools/testing/memblock/Makefile @@ -6,7 +6,8 @@ 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/alloc_api.o tests/basic_api.o tests/common.o +TEST_OFILES = tests/alloc_helpers_api.o 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 |
