Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / tools / perf / Build
blob3e486f7df94bb5f669c500609c84e20e5fbb75e2
1 perf-bench-y += builtin-bench.o
2 perf-y += builtin-annotate.o
3 perf-y += builtin-check.o
4 perf-y += builtin-config.o
5 perf-y += builtin-diff.o
6 perf-y += builtin-evlist.o
7 perf-y += builtin-ftrace.o
8 perf-y += builtin-help.o
9 perf-y += builtin-buildid-list.o
10 perf-y += builtin-buildid-cache.o
11 perf-y += builtin-kallsyms.o
12 perf-y += builtin-list.o
13 perf-y += builtin-record.o
14 perf-y += builtin-report.o
15 perf-y += builtin-stat.o
16 perf-y += builtin-top.o
17 perf-y += builtin-script.o
18 perf-y += builtin-kvm.o
19 perf-y += builtin-inject.o
20 perf-y += builtin-mem.o
21 perf-y += builtin-data.o
22 perf-y += builtin-version.o
23 perf-y += builtin-c2c.o
24 perf-y += builtin-daemon.o
26 perf-$(CONFIG_LIBTRACEEVENT) += builtin-kmem.o
27 perf-$(CONFIG_LIBTRACEEVENT) += builtin-kwork.o
28 perf-$(CONFIG_LIBTRACEEVENT) += builtin-lock.o
29 perf-$(CONFIG_LIBTRACEEVENT) += builtin-sched.o
30 perf-$(CONFIG_LIBTRACEEVENT) += builtin-timechart.o
32 ifeq ($(CONFIG_LIBTRACEEVENT),y)
33   perf-$(CONFIG_TRACE) += builtin-trace.o
34   perf-$(CONFIG_TRACE) += trace/beauty/
35 endif
37 perf-$(CONFIG_LIBELF) += builtin-probe.o
39 perf-bench-y += bench/
40 perf-test-y += tests/
42 perf-y += perf.o
44 paths += -DPERF_HTML_PATH="BUILD_STR($(htmldir_SQ))"
45 paths += -DPERF_INFO_PATH="BUILD_STR($(infodir_SQ))"
46 paths += -DPERF_MAN_PATH="BUILD_STR($(mandir_SQ))"
48 CFLAGS_builtin-help.o      += $(paths)
49 CFLAGS_builtin-timechart.o += $(paths)
50 CFLAGS_perf.o              += -DPERF_HTML_PATH="BUILD_STR($(htmldir_SQ))"       \
51                               -DPERF_EXEC_PATH="BUILD_STR($(perfexecdir_SQ))"   \
52                               -DPREFIX="BUILD_STR($(prefix_SQ))"
53 CFLAGS_builtin-trace.o     += -DSTRACE_GROUPS_DIR="BUILD_STR($(STRACE_GROUPS_DIR_SQ))"
54 CFLAGS_builtin-report.o    += -DTIPDIR="BUILD_STR($(tipdir_SQ))"
55 CFLAGS_builtin-report.o    += -DDOCDIR="BUILD_STR($(srcdir_SQ)/Documentation)"
57 perf-util-y += util/
58 perf-util-y += arch/
59 perf-y += arch/
60 perf-test-y += arch/
61 perf-ui-y += ui/
62 perf-util-y += scripts/
64 gtk-y += ui/gtk/
66 ifdef SHELLCHECK
67   SHELL_TESTS := $(wildcard *.sh)
68   TEST_LOGS := $(SHELL_TESTS:%=%.shellcheck_log)
69 else
70   SHELL_TESTS :=
71   TEST_LOGS :=
72 endif
74 $(OUTPUT)%.shellcheck_log: %
75         $(call rule_mkdir)
76         $(Q)$(call echo-cmd,test)shellcheck -s bash -a -S warning "$<" > $@ || (cat $@ && rm $@ && false)
78 perf-y += $(TEST_LOGS)