]> Git Repo - linux.git/blob - tools/testing/selftests/bpf/progs/struct_ops_forgotten_cb.c
Linux 6.14-rc3
[linux.git] / tools / testing / selftests / bpf / progs / struct_ops_forgotten_cb.c
1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright (c) 2024 Meta Platforms, Inc. and affiliates. */
3 #include <vmlinux.h>
4 #include <bpf/bpf_tracing.h>
5 #include "../test_kmods/bpf_testmod.h"
6
7 char _license[] SEC("license") = "GPL";
8
9 SEC("struct_ops/test_1")
10 int BPF_PROG(test_1_forgotten)
11 {
12         return 0;
13 }
14
15 SEC(".struct_ops.link")
16 struct bpf_testmod_ops ops = {
17         /* we forgot to reference test_1_forgotten above, oops */
18 };
19
This page took 0.028139 seconds and 4 git commands to generate.