+7
-10
tools/perf/Makefile.config
+7
-10
tools/perf/Makefile.config
···
663
663
$(call feature_check,clang-bpf-co-re)
664
664
ifeq ($(feature-clang-bpf-co-re), 0)
665
665
dummy := $(error: ERROR: BPF skeletons unsupported. clang too old/not installed or build with NO_BPF_SKEL=1.)
666
+
else
667
+
ifeq ($(filter -DHAVE_LIBBPF_SUPPORT, $(CFLAGS)),)
668
+
dummy := $(error: ERROR: BPF skeletons unsupported. BPF skeleton support requires libbpf or build with NO_BPF_SKEL=1.)
669
+
else
670
+
$(call detected,CONFIG_PERF_BPF_SKEL)
671
+
CFLAGS += -DHAVE_BPF_SKEL
672
+
endif
666
673
endif
667
-
ifeq ($(filter -DHAVE_LIBBPF_SUPPORT, $(CFLAGS)),)
668
-
dummy := $(error: ERROR: BPF skeletons unsupported. BPF skeleton support requires libbpf or build with NO_BPF_SKEL=1.)
669
-
endif
670
-
host_byte_order=$(echo ""|$(HOSTCC) -dM -E -|grep __BYTE_ORDER__)
671
-
target_byte_order=$(echo ""|$(CC) -dM -E -|grep __BYTE_ORDER__)
672
-
ifneq ($(host_byte_order), $(target_byte_order))
673
-
$(warning Possibly mismatched host and target endianness may break BPF skeletons)
674
-
endif
675
-
$(call detected,CONFIG_PERF_BPF_SKEL)
676
-
CFLAGS += -DHAVE_BPF_SKEL
677
674
endif
678
675
679
676
dwarf-post-unwind := 1