Files
BPI-CM9-Linux/aml-comp/kernel/aml-6.12/tools/build/feature/test-libbpf.c
T

12 lines
252 B
C
Raw Normal View History

2026-08-13 11:28:40 +08:00
// SPDX-License-Identifier: GPL-2.0
#include <bpf/libbpf.h>
#if !defined(LIBBPF_MAJOR_VERSION) || (LIBBPF_MAJOR_VERSION < 1)
#error At least libbpf 1.0 is required for Linux tools.
#endif
int main(void)
{
return bpf_object__open("test") ? 0 : -1;
}