diff options
author | Hou Tao <[email protected]> | 2023-09-08 21:39:23 +0800 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2023-09-11 12:41:37 -0700 |
commit | f0a42ab5890f749626b35f9fddd8d0704fc89524 (patch) | |
tree | 7a64861ed83752ac413a6fa9e14969ee728442ff /tools/perf/scripts/python/libxed.py | |
parent | c930472552022bd09aab3cd946ba3f243070d5c7 (diff) |
selftests/bpf: Test all valid alloc sizes for bpf mem allocator
Add a test to test all possible and valid allocation size for bpf
memory allocator. For each possible allocation size, the test uses
the following two steps to test the alloc and free path:
1) allocate N (N > high_watermark) objects to trigger the refill
executed in irq_work.
2) free N objects to trigger the freeing executed in irq_work.
Signed-off-by: Hou Tao <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions