diff options
author | Karolina Drobnik <karolinadrobnik@gmail.com> | 2022-02-28 15:46:51 +0100 |
---|---|---|
committer | Mike Rapoport <rppt@linux.ibm.com> | 2022-03-10 12:19:44 +0200 |
commit | 58ffc34896db2e5e49e6ae6bf8042f85504d84e8 (patch) | |
tree | eb176379cae19f274f4f4a81c9b8fa21ae1c26b9 /tools/testing/memblock/TODO | |
parent | 9d8f6abe980f98ffccad80b11d46df2116d7a5fc (diff) |
memblock tests: Add TODO and README files
Add description of the project, its structure and how to run it.
List what is left to implement and what the known issues are.
Signed-off-by: Karolina Drobnik <karolinadrobnik@gmail.com>
Signed-off-by: Mike Rapoport <rppt@linux.ibm.com>
Link: https://lore.kernel.org/r/d5e39b9f7dcef177ebc14282727447bc21e3b38f.1646055639.git.karolinadrobnik@gmail.com
Diffstat (limited to 'tools/testing/memblock/TODO')
-rw-r--r-- | tools/testing/memblock/TODO | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/tools/testing/memblock/TODO b/tools/testing/memblock/TODO new file mode 100644 index 000000000000..c25b2fdec45e --- /dev/null +++ b/tools/testing/memblock/TODO @@ -0,0 +1,28 @@ +TODO +===== + +1. Add verbose output (e.g., what is being tested and how many tests cases are + passing) + +2. Add flags to Makefile: + + verbosity level + + enable memblock_dbg() messages (i.e. pass "-D CONFIG_DEBUG_MEMORY_INIT" + flag) + +3. Add tests trying to memblock_add() or memblock_reserve() 129th region. + This will trigger memblock_double_array(), make sure it succeeds. + *Important:* These tests require valid memory ranges, use dummy physical + memory block from common.c to implement them. It is also very + likely that the current MEM_SIZE won't be enough for these + test cases. Use realloc to adjust the size accordingly. + +4. Add test cases using this functions (implement them for both directions): + + memblock_alloc_raw() + + memblock_alloc_exact_nid_raw() + + memblock_alloc_try_nid_raw() + +5. Add tests for memblock_alloc_node() to check if the correct NUMA node is set + for the new region + +6. Update comments in tests/basic_api.c to match the style used in + tests/alloc_*.c |