tools build: Add a feature test for scandirat(), that is not implemented so far in...
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 4 Apr 2023 14:05:57 +0000 (11:05 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 4 Apr 2023 16:18:17 +0000 (13:18 -0300)
commit9e03608e93858620317d54bc88a9a0069bce003d
treeae65e7ee439c44b94375e897c086c0bb809337e9
parent430635a0ef1ce958b7b4311f172694ece2c692b8
tools build: Add a feature test for scandirat(), that is not implemented so far in musl and uclibc

We use it just when listing tracepoint events, and for root, so just
emit a warning about it to get users to ask the library maintainers to
implement it, as suggested in this systemd ticket:

 https://github.com/systemd/casync/issues/129

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/lkml/ZCwv4z5Dh%2FdHUMG6@kernel.org/
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/build/Makefile.feature
tools/build/feature/Makefile
tools/build/feature/test-all.c
tools/build/feature/test-scandirat.c [new file with mode: 0644]
tools/perf/Makefile.config