]> www.infradead.org Git - users/hch/misc.git/commitdiff
tools build: Don't assume libtracefs-devel is always available
authorArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 2 Oct 2025 12:52:11 +0000 (09:52 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 2 Oct 2025 16:11:27 +0000 (13:11 -0300)
perf doesn't use libtracefs and so it doesn't make sense to assume it is
always available when building test-all.bin, defeating the feature check
speedup it provides.

The other tools/build/ users such as rtla, rv, etc call $(feature_check
libtracefs) to check its availability instead of using the test-all.bin
mechanism, stopping the build and asking for libtracefs-devel to be
installed.

Remove it from FEATURE_TESTS_BASIC to not have it as available, as noted
by Ian Rogers during review.

Reviewed-by: Ian Rogers <irogers@google.com>
Acked-by: Tomas Glozar <tglozar@redhat.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Gabriele Monaco <gmonaco@redhat.com>
Cc: James Clark <james.clark@linaro.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/build/Makefile.feature
tools/build/feature/test-all.c

index 9c1a69d26f5121fd5252b986a268f32e5b5de249..531f8fc4f7df9943118f7042b524398d6ff1abd0 100644 (file)
@@ -83,7 +83,6 @@ FEATURE_TESTS_BASIC :=                  \
         libpython                       \
         libslang                        \
         libtraceevent                   \
-        libtracefs                      \
         libcpupower                     \
         pthread-attr-setaffinity-np     \
         pthread-barrier                \
index e1847db6f8e637502897ac43ef94290c781ffef1..2df593593b6ec15e0b3b575d517e53dc6d186b79 100644 (file)
 # include "test-libtraceevent.c"
 #undef main
 
-#define main main_test_libtracefs
-# include "test-libtracefs.c"
-#undef main
-
 int main(int argc, char *argv[])
 {
        main_test_libpython();
@@ -187,7 +183,6 @@ int main(int argc, char *argv[])
        main_test_reallocarray();
        main_test_libzstd();
        main_test_libtraceevent();
-       main_test_libtracefs();
 
        return 0;
 }