Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next
[sfrench/cifs-2.6.git] / tools / lib / bpf / bpf_helpers.h
index 0c7d28292898c589959c71e1990a97004656491a..f69cc208778a2de76479b4458d8cf56b7127ec30 100644 (file)
@@ -25,6 +25,9 @@
 #ifndef __always_inline
 #define __always_inline __attribute__((always_inline))
 #endif
+#ifndef __weak
+#define __weak __attribute__((weak))
+#endif
 
 /*
  * Helper structure used by eBPF C program
@@ -44,4 +47,12 @@ enum libbpf_pin_type {
        LIBBPF_PIN_BY_NAME,
 };
 
+enum libbpf_tristate {
+       TRI_NO = 0,
+       TRI_YES = 1,
+       TRI_MODULE = 2,
+};
+
+#define __kconfig __attribute__((section(".kconfig")))
+
 #endif