]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Revert "tools build: Remove leftover libcap tests that prevents fast path feature...
authorArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 29 Aug 2024 14:46:40 +0000 (11:46 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 29 Aug 2024 14:51:43 +0000 (11:51 -0300)
commit0fd77ae4a3c94eca3f07e01083680ad0056df628
tree7bd8be8818588d8dc3b91cc21c59c26c13127bda
parent47b3b6435e4bfb61ae8ffc63a11bd3c310f69acf
Revert "tools build: Remove leftover libcap tests that prevents fast path feature detection from working"

Ian pointed out that the libcap feature test is also used by bpftool, so
we can't remove it just because perf stopped using it, revert the
removal of the feature test.

Since both perf and libcap uses the fast path feature detection
(tools/build/feature/test-all.c), probably the best thing is to keep
libcap-devel when building perf even it not being used there.

This reverts commit 47b3b6435e4bfb61ae8ffc63a11bd3c310f69acf.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/build/feature/Makefile
tools/build/feature/test-libcap.c [new file with mode: 0644]