@@ -120,6 +120,10 @@ ifeq ($(feature-libelf-getphdrnum), 1)
override CFLAGS += -DHAVE_ELF_GETPHDRNUM_SUPPORT
endif
+ifdef UBPF
+ override CFLAGS += -DHAVE_UBPF_SUPPORT
+endif
+
# Append required CFLAGS
override CFLAGS += $(EXTRA_WARNINGS)
override CFLAGS += -Werror -Wall
@@ -81,6 +81,8 @@ include ../scripts/utilities.mak
#
# Define NO_LIBBPF if you do not want BPF support
#
+# Define UBPF if you DO want user space BPF support
+#
# Define FEATURES_DUMP to provide features detection dump file
# and bypass the feature detection
@@ -329,6 +329,10 @@ ifndef NO_LIBELF
ifeq ($(feature-bpf), 1)
CFLAGS += -DHAVE_LIBBPF_SUPPORT
$(call detected,CONFIG_LIBBPF)
+ ifdef UBPF
+ CFLAGS += -DHAVE_UBPF_SUPPORT
+ $(call detected,CONFIG_UBPF)
+ endif
endif
ifndef NO_DWARF