xref: /linux/tools/testing/selftests/bpf/progs/token_kallsyms.c (revision 0fc8f6200d2313278fbf4539bbab74677c685531)
1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright (c) 2026 Meta Platforms, Inc. and affiliates. */
3 
4 #include "vmlinux.h"
5 #include <bpf/bpf_helpers.h>
6 
7 char _license[] SEC("license") = "GPL";
8 
9 __weak
10 int token_ksym_subprog(void)
11 {
12 	return 0;
13 }
14 
15 SEC("xdp")
16 int xdp_main(struct xdp_md *xdp)
17 {
18 	return token_ksym_subprog();
19 }
20