From 9885a5f983206be70ffe098a863536663ed3bc4e Mon Sep 17 00:00:00 2001 From: Jatin <84621253+h0x0er@users.noreply.github.com> Date: Fri, 22 Aug 2025 12:45:16 +0530 Subject: [PATCH] added zero_seed flag --- snippets/maps.code-snippets | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snippets/maps.code-snippets b/snippets/maps.code-snippets index 20b08d5..13230cb 100644 --- a/snippets/maps.code-snippets +++ b/snippets/maps.code-snippets @@ -30,7 +30,7 @@ "add map_flags": { "scope": "c", "prefix": "bpf-map-add-flags", - "body": "\t__uint(map_flags, ${1|BPF_F_NO_PREALLOC,BPF_F_NUMA_NODE,BPF_F_RDONLY,BPF_F_RDONLY_PROG,BPF_F_WRONLY_PROG|});", + "body": "\t__uint(map_flags, ${1|BPF_F_NO_PREALLOC,BPF_F_NUMA_NODE,BPF_F_RDONLY,BPF_F_RDONLY_PROG,BPF_F_WRONLY_PROG,BPF_F_ZERO_SEED|});", }, "create generic bpf map": { "scope": "c", @@ -46,7 +46,7 @@ "\t__uint(key_size, ${5:sizeof(u64)}); // remove if not needed", "\t__uint(value_size, ${6:sizeof(u64)}); // remove if not needed", "\t__array(values, ${7:struct my_value}); // remove if not needed", - "\t__uint(map_flags, ${8|BPF_F_NO_PREALLOC,BPF_F_NUMA_NODE,BPF_F_RDONLY,BPF_F_RDONLY_PROG,BPF_F_WRONLY_PROG|}); // remove if not needed", + "\t__uint(map_flags, ${8|BPF_F_NO_PREALLOC,BPF_F_NUMA_NODE,BPF_F_RDONLY,BPF_F_RDONLY_PROG,BPF_F_WRONLY_PROG,BPF_F_ZERO_SEED|}); // remove if not needed", "} ${9:my_map_name} SEC(\".maps\");" ] },