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