aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/bpf-headers/src
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2021-10-26 20:41:22 +0200
committerFelix Fietkau <nbd@nbd.name>2021-11-01 16:39:09 +0100
commita537d06c72853c054c57d75af4074c1749e47947 (patch)
tree09ae09d133cf8320c4b2fd995d064f043c844218 /package/kernel/bpf-headers/src
parent5ad663b7652e06e430209c2b3f5ab835181082e7 (diff)
downloadupstream-a537d06c72853c054c57d75af4074c1749e47947.tar.gz
upstream-a537d06c72853c054c57d75af4074c1749e47947.tar.bz2
upstream-a537d06c72853c054c57d75af4074c1749e47947.zip
bpf-headers: add a package with kernel headers for ebpf
In order to genererate suitable kernel headers, a 5.10 kernel tree is prepared with a default config for mips. The arch is forced to mips in order to avoid issues with inline asm on various architectures in a way that doesn't involve relying on the host toolchain/headers. It also has the advantage of supporting both endian types Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'package/kernel/bpf-headers/src')
-rw-r--r--package/kernel/bpf-headers/src/include/generated/bounds.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/package/kernel/bpf-headers/src/include/generated/bounds.h b/package/kernel/bpf-headers/src/include/generated/bounds.h
new file mode 100644
index 0000000000..82ff01043c
--- /dev/null
+++ b/package/kernel/bpf-headers/src/include/generated/bounds.h
@@ -0,0 +1,14 @@
+#ifndef __LINUX_BOUNDS_H__
+#define __LINUX_BOUNDS_H__
+/*
+ * DO NOT MODIFY.
+ *
+ * This file was generated by Kbuild
+ */
+
+#define NR_PAGEFLAGS 23 /* __NR_PAGEFLAGS */
+#define MAX_NR_ZONES 4 /* __MAX_NR_ZONES */
+#define NR_CPUS_BITS 1 /* ilog2(CONFIG_NR_CPUS) */
+#define SPINLOCK_SIZE 64 /* sizeof(spinlock_t) */
+
+#endif