Skip to content

Commit ccefa19

Browse files
liu-song-6anakryiko
authored andcommitted
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 <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
1 parent af91af3 commit ccefa19

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/testing/selftests/bpf/veristat.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1182,6 +1182,7 @@ static void fixup_obj(struct bpf_object *obj, struct bpf_program *prog, const ch
11821182
case BPF_MAP_TYPE_TASK_STORAGE:
11831183
case BPF_MAP_TYPE_INODE_STORAGE:
11841184
case BPF_MAP_TYPE_CGROUP_STORAGE:
1185+
case BPF_MAP_TYPE_CGRP_STORAGE:
11851186
break;
11861187
case BPF_MAP_TYPE_STRUCT_OPS:
11871188
mask_unrelated_struct_ops_progs(obj, map, prog);

0 commit comments

Comments
 (0)