Commit 76a97cf2 authored by Ian Rogers's avatar Ian Rogers Committed by Arnaldo Carvalho de Melo
Browse files

perf build: Remove libbpf pre-1.0 feature tests



The feature tests were necessary for libbpf pre-1.0, but as the libbpf
implies at least 1.0 we can remove these now.

Committer notes:

Modified tools/perf/Makefile.config to better reflect the reason for
failure when the libbpf present is < 1.0 and LIBBPF_DYNAMIC=1 was asked
for.

Signed-off-by: default avatarIan Rogers <irogers@google.com>
Acked-by: default avatarJiri Olsa <jolsa@kernel.org>
Tested-by: default avatarJiri Olsa <jolsa@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Andres Freund <andres@anarazel.de>
Cc: Andrii Nakryiko <andrii@kernel.org>
Cc: Christy Lee <christylee@fb.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Quentin Monnet <quentin@isovalent.com>
Cc: Roberto Sassu <roberto.sassu@huawei.com>
Cc: bpf@vger.kernel.org
Link: https://lore.kernel.org/r/20230116010115.490713-2-irogers@google.com


Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 56d52294
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -58,13 +58,6 @@ FILES= \
         test-lzma.bin                          \
         test-bpf.bin                           \
         test-libbpf.bin                        \
         test-libbpf-btf__load_from_kernel_by_id.bin	\
         test-libbpf-bpf_prog_load.bin          \
         test-libbpf-bpf_map_create.bin		\
         test-libbpf-bpf_object__next_program.bin \
         test-libbpf-bpf_object__next_map.bin   \
         test-libbpf-bpf_program__set_insns.bin	\
         test-libbpf-btf__raw_data.bin          \
         test-get_cpuid.bin                     \
         test-sdt.bin                           \
         test-cxx.bin                           \
+0 −8
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0
#include <bpf/bpf.h>

int main(void)
{
	return bpf_map_create(0 /* map_type */, NULL /* map_name */, 0, /* key_size */,
			      0 /* value_size */, 0 /* max_entries */, NULL /* opts */);
}
+0 −8
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0
#include <bpf/libbpf.h>

int main(void)
{
	bpf_object__next_map(NULL /* obj */, NULL /* prev */);
	return 0;
}
+0 −8
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0
#include <bpf/libbpf.h>

int main(void)
{
	bpf_object__next_program(NULL /* obj */, NULL /* prev */);
	return 0;
}
+0 −9
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0
#include <bpf/bpf.h>

int main(void)
{
	return bpf_prog_load(0 /* prog_type */, NULL /* prog_name */,
			     NULL /* license */, NULL /* insns */,
			     0 /* insn_cnt */, NULL /* opts */);
}
Loading