git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
perf tools: Allow to link with libbpf dynamicaly
[sfrench/cifs-2.6.git]
/
tools
/
build
/
feature
/
test-libbpf.c
diff --git a/tools/build/feature/test-libbpf.c
b/tools/build/feature/test-libbpf.c
new file mode 100644
(file)
index 0000000..
a508756
--- /dev/null
+++ b/
tools/build/feature/test-libbpf.c
@@ -0,0
+1,7
@@
+// SPDX-License-Identifier: GPL-2.0
+#include <bpf/libbpf.h>
+
+int main(void)
+{
+ return bpf_object__open("test") ? 0 : -1;
+}