bpf/veristat: Fix veristat for map type BPF_MAP_TYPE_CGRP_STORAGE
Subsystems (3)
Song Liu
reviewerPATCH 1/1 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]>
--- tools/testing/selftests/bpf/veristat.c | 1 + 1 file changed, 1 insertion(+)
tools/testing/selftests/bpf/veristat.c +1 -0
@@ -1182,6 +1182,7 @@ static void fixup_obj(struct bpf_object *obj, struct bpf_program *prog, const chcase 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);
Signature · 1 line
2.47.1
This patch was applied to bpf/bpf-next.git (master) by Andrii Nakryiko <[email protected]>:
Hello:
This patch was applied to bpf/bpf-next.git (master) by Andrii Nakryiko <[email protected]>:
Quoted 7 lines · On Thu, 12 Jun 2025 22:00:01 -0700 you wrote:
BPF_MAP_TYPE_CGRP_STORAGEdoesn't allow non-zeromax_entries. So veristat should not set it to 1.Signed-off-by Song Liu <[email protected]>--- tools/testing/selftests/bpf/veristat.c | 1 + 1 file changed, 1 insertion(+)
Here is the summary with links:
- [bpf-next] bpf/veristat: Fix veristat for map type BPF_MAP_TYPE_CGRP_STORAGE
https://git.kernel.org/bpf/bpf-next/c/ccefa19335a0
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html