diff options
author | Hou Tao <houtao1@huawei.com> | 2023-10-20 16:32:02 +0300 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2023-10-21 00:15:13 +0300 |
commit | d440ba91ca4d3004709876779d40713a99e21f6a (patch) | |
tree | e00e8bcbaedd9a6bc3783abe6edcb71b3c2ac382 /net/netfilter/xt_cpu.c | |
parent | e383a45902337356d9ccad797094a27c6b2150f9 (diff) | |
download | linux-d440ba91ca4d3004709876779d40713a99e21f6a.tar.xz |
selftests/bpf: Add more test cases for bpf memory allocator
Add the following 3 test cases for bpf memory allocator:
1) Do allocation in bpf program and free through map free
2) Do batch per-cpu allocation and per-cpu free in bpf program
3) Do per-cpu allocation in bpf program and free through map free
For per-cpu allocation, because per-cpu allocation can not refill timely
sometimes, so test 2) and test 3) consider it is OK for
bpf_percpu_obj_new_impl() to return NULL.
Signed-off-by: Hou Tao <houtao1@huawei.com>
Link: https://lore.kernel.org/r/20231020133202.4043247-8-houtao@huaweicloud.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'net/netfilter/xt_cpu.c')
0 files changed, 0 insertions, 0 deletions