1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright (c) 2025 Meta */
3 #include <vmlinux.h>
4 #include <bpf/bpf_helpers.h>
5 //#include <bpf/bpf_tracing.h>
6 
7 char _license[] SEC("license") = "GPL";
8 
9 int err;
10 
11 struct {
12 	__uint(type, BPF_MAP_TYPE_RINGBUF);
13 	__uint(max_entries, 4096);
14 } ringbuf SEC(".maps");
15 
16 struct {
17 	__uint(type, BPF_MAP_TYPE_ARRAY);
18 	__uint(max_entries, 1);
19 	__type(key, __u32);
20 	__type(value, __u32);
21 } array_map SEC(".maps");
22 
23 SEC("cgroup_skb/egress")
program(struct __sk_buff * skb)24 int program(struct __sk_buff *skb)
25 {
26 	err = 0;
27 	return 0;
28 }
29