Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
1// SPDX-License-Identifier: GPL-2.0
2/* Copyright (c) 2025 Meta Platforms, Inc. and affiliates. */
3#include <vmlinux.h>
4#include <bpf/bpf_helpers.h>
5
6char _license[] SEC("license") = "GPL";
7
8SEC("cgroup/getsockopt")
9int getsockopt_1(struct bpf_sockopt *ctx)
10{
11 return 1;
12}
13
14SEC("cgroup/getsockopt")
15int getsockopt_2(struct bpf_sockopt *ctx)
16{
17 return 1;
18}
19
20SEC("cgroup/getsockopt")
21int getsockopt_3(struct bpf_sockopt *ctx)
22{
23 return 1;
24}
25
26SEC("cgroup/getsockopt")
27int getsockopt_4(struct bpf_sockopt *ctx)
28{
29 return 1;
30}