Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

tools build: Don't assume libtracefs-devel is always available

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>

-6
-1
tools/build/Makefile.feature
··· 83 83 libpython \ 84 84 libslang \ 85 85 libtraceevent \ 86 - libtracefs \ 87 86 libcpupower \ 88 87 pthread-attr-setaffinity-np \ 89 88 pthread-barrier \
-5
tools/build/feature/test-all.c
··· 150 150 # include "test-libtraceevent.c" 151 151 #undef main 152 152 153 - #define main main_test_libtracefs 154 - # include "test-libtracefs.c" 155 - #undef main 156 - 157 153 int main(int argc, char *argv[]) 158 154 { 159 155 main_test_libpython(); ··· 183 187 main_test_reallocarray(); 184 188 main_test_libzstd(); 185 189 main_test_libtraceevent(); 186 - main_test_libtracefs(); 187 190 188 191 return 0; 189 192 }