xref: /OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/progs/metadata_unused.c (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun // SPDX-License-Identifier: GPL-2.0-only
2*4882a593Smuzhiyun 
3*4882a593Smuzhiyun #include <linux/bpf.h>
4*4882a593Smuzhiyun #include <bpf/bpf_helpers.h>
5*4882a593Smuzhiyun 
6*4882a593Smuzhiyun volatile const char bpf_metadata_a[] SEC(".rodata") = "foo";
7*4882a593Smuzhiyun volatile const int bpf_metadata_b SEC(".rodata") = 1;
8*4882a593Smuzhiyun 
9*4882a593Smuzhiyun SEC("cgroup_skb/egress")
prog(struct xdp_md * ctx)10*4882a593Smuzhiyun int prog(struct xdp_md *ctx)
11*4882a593Smuzhiyun {
12*4882a593Smuzhiyun 	return 0;
13*4882a593Smuzhiyun }
14*4882a593Smuzhiyun 
15*4882a593Smuzhiyun char _license[] SEC("license") = "GPL";
16