xref: /linux/tools/perf/util/bpf_skel/perf_version.h (revision b4ada0618eed0fbd1b1630f73deb048c592b06a1)
1 /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
2 
3 #ifndef __PERF_VERSION_H__
4 #define __PERF_VERSION_H__
5 
6 #include "vmlinux.h"
7 #include <bpf/bpf_helpers.h>
8 
9 /*
10  * This is used by tests/shell/record_bpf_metadata.sh
11  * to verify that BPF metadata generation works.
12  *
13  * PERF_VERSION is defined by a build rule at compile time.
14  */
15 const char bpf_metadata_perf_version[] SEC(".rodata") = PERF_VERSION;
16 
17 #endif /* __PERF_VERSION_H__ */
18