aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorShaoqin Huang <[email protected]>2022-10-11 14:21:21 +0800
committerMike Rapoport <[email protected]>2022-10-31 10:15:00 +0200
commit5b27dd7968b9c916da4af48d0310f94152744f8e (patch)
tree4aa0f0e7020c65dd727f50484da29345ca3bb947 /tools/perf/scripts/python
parent085bdaa6eb1476ec054164bdc4001bc3916ff5cb (diff)
memblock test: Add test to memblock_reserve() 129th region
Reserve 129th region in the memblock, and this will trigger the memblock_double_array() function, this needs valid memory regions. So using dummy_physical_memory_init() to allocate a valid memory region. At the same time, reserve 128 faked memory region, and make sure these reserved region not intersect with the valid memory region. So memblock_double_array() will choose the valid memory region, and it will success. Also need to restore the reserved.regions after memblock_double_array(), to make sure the subsequent tests can run as normal. Signed-off-by: Shaoqin Huang <[email protected]> Signed-off-by: Mike Rapoport <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions