1 // SPDX-License-Identifier: GPL-2.0
4 #include <bpf/bpf_helpers.h>
11 __uint(type, BPF_MAP_TYPE_HASH);
12 __uint(max_entries, 2);
15 } hash_map SEC(".maps");
17 SEC("tp/syscalls/sys_enter_getpgid")
18 int bpf_lookup_and_delete_test(const void *ctx)
20 if (set_pid == bpf_get_current_pid_tgid() >> 32)
21 bpf_map_update_elem(&hash_map, &set_key, &set_value, BPF_NOEXIST);
26 char _license[] SEC("license") = "GPL";