summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/progs/cgroup_mprog.c
blob: 6a0ea02c4de22759a91210cdb5d730634d6081bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// SPDX-License-Identifier: GPL-2.0
/* Copyright (c) 2025 Meta Platforms, Inc. and affiliates. */
#include <vmlinux.h>
#include <bpf/bpf_helpers.h>

char _license[] SEC("license") = "GPL";

SEC("cgroup/getsockopt")
int getsockopt_1(struct bpf_sockopt *ctx)
{
	return 1;
}

SEC("cgroup/getsockopt")
int getsockopt_2(struct bpf_sockopt *ctx)
{
	return 1;
}

SEC("cgroup/getsockopt")
int getsockopt_3(struct bpf_sockopt *ctx)
{
	return 1;
}

SEC("cgroup/getsockopt")
int getsockopt_4(struct bpf_sockopt *ctx)
{
	return 1;
}