1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright (c) 2026 Meta Platforms, Inc. and affiliates. */
3 #include <linux/bpf.h>
4 #include <bpf/bpf_helpers.h>
5
6 /*
7 * Programs below exist only to exercise veristat's -f name filters,
8 * their bodies are irrelevant, only the names matter.
9 * This file is also included by veristat_bar.c, so that the same set of
10 * program names is available in two differently named object files.
11 */
12
13 SEC("socket")
foo(void * ctx)14 int foo(void *ctx)
15 {
16 return 0;
17 }
18
19 SEC("socket")
bar(void * ctx)20 int bar(void *ctx)
21 {
22 return 0;
23 }
24
25 SEC("socket")
buz(void * ctx)26 int buz(void *ctx)
27 {
28 return 0;
29 }
30
31 char _license[] SEC("license") = "GPL";
32