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