diff options
| author | Song Liu <song@kernel.org> | 2025-06-12 22:00:01 -0700 |
|---|---|---|
| committer | Andrii Nakryiko <andrii@kernel.org> | 2025-06-13 10:08:22 -0700 |
| commit | ccefa19335a0b81f11b0856e951ca909445b3783 (patch) | |
| tree | 0f19c565f998441eac76fd5a9af08aaedc60fb1e | |
| parent | af91af33c16853c569ca814124781b849886f007 (diff) | |
| download | linux-stable-ccefa19335a0b81f11b0856e951ca909445b3783.tar.gz linux-stable-ccefa19335a0b81f11b0856e951ca909445b3783.zip | |
bpf/veristat: Fix veristat for map type BPF_MAP_TYPE_CGRP_STORAGE
BPF_MAP_TYPE_CGRP_STORAGE doesn't allow non-zero max_entries. So veristat
should not set it to 1.
Signed-off-by: Song Liu <song@kernel.org>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20250613050001.1058733-1-song@kernel.org
| -rw-r--r-- | tools/testing/selftests/bpf/veristat.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/bpf/veristat.c b/tools/testing/selftests/bpf/veristat.c index b2bb20b00952..70cdabd88c50 100644 --- a/tools/testing/selftests/bpf/veristat.c +++ b/tools/testing/selftests/bpf/veristat.c @@ -1182,6 +1182,7 @@ static void fixup_obj(struct bpf_object *obj, struct bpf_program *prog, const ch case BPF_MAP_TYPE_TASK_STORAGE: case BPF_MAP_TYPE_INODE_STORAGE: case BPF_MAP_TYPE_CGROUP_STORAGE: + case BPF_MAP_TYPE_CGRP_STORAGE: break; case BPF_MAP_TYPE_STRUCT_OPS: mask_unrelated_struct_ops_progs(obj, map, prog); |
