projects
/
releases.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
GNU Linux-libre 6.8.7-gnu
[releases.git]
/
tools
/
build
/
feature
/
test-libbpf.c
1
// SPDX-License-Identifier: GPL-2.0
2
#include <bpf/libbpf.h>
3
4
#if !defined(LIBBPF_MAJOR_VERSION) || (LIBBPF_MAJOR_VERSION < 1)
5
#error At least libbpf 1.0 is required for Linux tools.
6
#endif
7
8
int main(void)
9
{
10
return bpf_object__open("test") ? 0 : -1;
11
}