summaryrefslogtreecommitdiffstats
path: root/kernel/tools/build/feature/test-bpf.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/tools/build/feature/test-bpf.c')
-rw-r--r--kernel/tools/build/feature/test-bpf.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/kernel/tools/build/feature/test-bpf.c b/kernel/tools/build/feature/test-bpf.c
new file mode 100644
index 000000000..062bac811
--- /dev/null
+++ b/kernel/tools/build/feature/test-bpf.c
@@ -0,0 +1,18 @@
+#include <linux/bpf.h>
+
+int main(void)
+{
+ union bpf_attr attr;
+
+ attr.prog_type = BPF_PROG_TYPE_KPROBE;
+ attr.insn_cnt = 0;
+ attr.insns = 0;
+ attr.license = 0;
+ attr.log_buf = 0;
+ attr.log_size = 0;
+ attr.log_level = 0;
+ attr.kern_version = 0;
+
+ attr = attr;
+ return 0;
+}