Skip to contentSkip to conversation

tools/build: Remove some unused libbpf pre-1.0 feature test logic

PATCH Applied Ian Rogers 2 participants 2 messages Jun 3, 2025 – Jun 10, 2025 BPF

lore
Share & tools
lore

Ian Rogers

author
#0 lore raw

PATCH 1/1 tools/build: Remove some unused libbpf pre-1.0 feature test logic

Commit 76a97cf2e169 ("perf build: Remove libbpf pre-1.0 feature tests") removed the libbpf feature test logic used by perf in favor of using LIBBPF_MAJOR_VERSION. Remove some build targets that should have been removed as part of that clean up.

Fixes 76a97cf2e169 ("perf build: Remove libbpf pre-1.0 feature tests")
---
 tools/build/Makefile.feature |  6 ------
 tools/build/feature/Makefile | 21 ---------------------
 2 files changed, 27 deletions(-)
tools/build/Makefile.feature +0 -6
index 1f44ca677ad3..05f6671a2d07 100644
@@ -127,12 +127,6 @@ FEATURE_TESTS_EXTRA :=                  \
          llvm                           \
          clang                          \
          libbpf                         \
-         libbpf-btf__load_from_kernel_by_id \
-         libbpf-bpf_prog_load           \
-         libbpf-bpf_object__next_program \
-         libbpf-bpf_object__next_map    \
-         libbpf-bpf_program__set_insns  \
-         libbpf-bpf_create_map		\
          libpfm4                        \
          libdebuginfod			\
          clang-bpf-co-re		\
tools/build/feature/Makefile +0 -21
index b8b5fb183dd4..4aa166d3eab6 100644
@@ -339,27 +339,6 @@ $(OUTPUT)test-bpf.bin:
 $(OUTPUT)test-libbpf.bin:
 	$(BUILD) -lbpf
 
-$(OUTPUT)test-libbpf-btf__load_from_kernel_by_id.bin:
-	$(BUILD) -lbpf
-
-$(OUTPUT)test-libbpf-bpf_prog_load.bin:
-	$(BUILD) -lbpf
-
-$(OUTPUT)test-libbpf-bpf_map_create.bin:
-	$(BUILD) -lbpf
-
-$(OUTPUT)test-libbpf-bpf_object__next_program.bin:
-	$(BUILD) -lbpf
-
-$(OUTPUT)test-libbpf-bpf_object__next_map.bin:
-	$(BUILD) -lbpf
-
-$(OUTPUT)test-libbpf-bpf_program__set_insns.bin:
-	$(BUILD) -lbpf
-
-$(OUTPUT)test-libbpf-btf__raw_data.bin:
-	$(BUILD) -lbpf
-
 $(OUTPUT)test-sdt.bin:
 	$(BUILD)
 
Signature · 1 line
2.49.0.1204.g71687c7c1d-goog
Applied
#1 lore raw
Quoted 6 lines · Ian Rogers

Commit 76a97cf2e169 ("perf build: Remove libbpf pre-1.0 feature tests") removed the libbpf feature test logic used by perf in favor of using LIBBPF_MAJOR_VERSION. Remove some build targets that should have been removed as part of that clean up.

Applied to perf-tools-next, thanks!

Best regards,
Namhyung