diff options
| author | Yonghong Song <[email protected]> | 2023-12-22 03:18:07 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2024-01-04 05:08:26 +0000 |
| commit | 21f5a801c171dff4e728e38f62cf626c4197d07c (patch) | |
| tree | 876d4710deae0593e8aa7c6ad61b95295ddd3880 /tools/lib/bpf/libbpf.c | |
| parent | bpf: Limit up to 512 bytes for bpf_global_percpu_ma allocation (diff) | |
| download | kernel-21f5a801c171dff4e728e38f62cf626c4197d07c.tar.gz kernel-21f5a801c171dff4e728e38f62cf626c4197d07c.zip | |
selftests/bpf: Cope with 512 bytes limit with bpf_global_percpu_ma
In the previous patch, the maximum data size for bpf_global_percpu_ma
is 512 bytes. This breaks selftest test_bpf_ma. The test is adjusted
in two aspects:
- Since the maximum allowed data size for bpf_global_percpu_ma is
512, remove all tests beyond that, names sizes 1024, 2048 and 4096.
- Previously the percpu data size is bucket_size - 8 in order to
avoid percpu allocation into the next bucket. This patch removed
such data size adjustment thanks to Patch 1.
Also, a better way to generate BTF type is used than adding
a member to the value struct.
Acked-by: Hou Tao <[email protected]>
Signed-off-by: Yonghong Song <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/lib/bpf/libbpf.c')
0 files changed, 0 insertions, 0 deletions
