summaryrefslogtreecommitdiffstats
path: root/tools/perf/Makefile.config
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2023-04-04 11:05:57 -0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2023-04-04 13:18:17 -0300
commit9e03608e93858620317d54bc88a9a0069bce003d (patch)
treeae65e7ee439c44b94375e897c086c0bb809337e9 /tools/perf/Makefile.config
parent430635a0ef1ce958b7b4311f172694ece2c692b8 (diff)
downloadlinux-stable-9e03608e93858620317d54bc88a9a0069bce003d.tar.gz
linux-stable-9e03608e93858620317d54bc88a9a0069bce003d.tar.bz2
linux-stable-9e03608e93858620317d54bc88a9a0069bce003d.zip
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>
Diffstat (limited to 'tools/perf/Makefile.config')
-rw-r--r--tools/perf/Makefile.config4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/perf/Makefile.config b/tools/perf/Makefile.config
index 236d763181c5..fd1be9596d12 100644
--- a/tools/perf/Makefile.config
+++ b/tools/perf/Makefile.config
@@ -479,6 +479,10 @@ ifdef NO_DWARF
NO_LIBDW_DWARF_UNWIND := 1
endif
+ifeq ($(feature-scandirat), 1)
+ CFLAGS += -DHAVE_SCANDIRAT_SUPPORT
+endif
+
ifeq ($(feature-sched_getcpu), 1)
CFLAGS += -DHAVE_SCHED_GETCPU_SUPPORT
endif