1 perf-bench-y += builtin-bench.o 1 perf-bench-y += builtin-bench.o 2 perf-y += builtin-annotate.o 2 perf-y += builtin-annotate.o 3 perf-y += builtin-check.o << 4 perf-y += builtin-config.o 3 perf-y += builtin-config.o 5 perf-y += builtin-diff.o 4 perf-y += builtin-diff.o 6 perf-y += builtin-evlist.o 5 perf-y += builtin-evlist.o 7 perf-y += builtin-ftrace.o 6 perf-y += builtin-ftrace.o 8 perf-y += builtin-help.o 7 perf-y += builtin-help.o 9 perf-y += builtin-buildid-list.o 8 perf-y += builtin-buildid-list.o 10 perf-y += builtin-buildid-cache.o 9 perf-y += builtin-buildid-cache.o 11 perf-y += builtin-kallsyms.o 10 perf-y += builtin-kallsyms.o 12 perf-y += builtin-list.o 11 perf-y += builtin-list.o 13 perf-y += builtin-record.o 12 perf-y += builtin-record.o 14 perf-y += builtin-report.o 13 perf-y += builtin-report.o 15 perf-y += builtin-stat.o 14 perf-y += builtin-stat.o 16 perf-y += builtin-top.o 15 perf-y += builtin-top.o 17 perf-y += builtin-script.o 16 perf-y += builtin-script.o 18 perf-y += builtin-kvm.o 17 perf-y += builtin-kvm.o 19 perf-y += builtin-inject.o 18 perf-y += builtin-inject.o 20 perf-y += builtin-mem.o 19 perf-y += builtin-mem.o 21 perf-y += builtin-data.o 20 perf-y += builtin-data.o 22 perf-y += builtin-version.o 21 perf-y += builtin-version.o 23 perf-y += builtin-c2c.o 22 perf-y += builtin-c2c.o 24 perf-y += builtin-daemon.o 23 perf-y += builtin-daemon.o 25 24 26 perf-$(CONFIG_LIBTRACEEVENT) += builtin-kmem.o 25 perf-$(CONFIG_LIBTRACEEVENT) += builtin-kmem.o 27 perf-$(CONFIG_LIBTRACEEVENT) += builtin-kwork. 26 perf-$(CONFIG_LIBTRACEEVENT) += builtin-kwork.o 28 perf-$(CONFIG_LIBTRACEEVENT) += builtin-lock.o 27 perf-$(CONFIG_LIBTRACEEVENT) += builtin-lock.o 29 perf-$(CONFIG_LIBTRACEEVENT) += builtin-sched. 28 perf-$(CONFIG_LIBTRACEEVENT) += builtin-sched.o 30 perf-$(CONFIG_LIBTRACEEVENT) += builtin-timech 29 perf-$(CONFIG_LIBTRACEEVENT) += builtin-timechart.o 31 30 32 ifeq ($(CONFIG_LIBTRACEEVENT),y) 31 ifeq ($(CONFIG_LIBTRACEEVENT),y) 33 perf-$(CONFIG_TRACE) += builtin-trace.o 32 perf-$(CONFIG_TRACE) += builtin-trace.o 34 perf-$(CONFIG_TRACE) += trace/beauty/ 33 perf-$(CONFIG_TRACE) += trace/beauty/ 35 endif 34 endif 36 35 37 perf-$(CONFIG_LIBELF) += builtin-probe.o 36 perf-$(CONFIG_LIBELF) += builtin-probe.o 38 37 39 perf-bench-y += bench/ 38 perf-bench-y += bench/ 40 perf-test-y += tests/ 39 perf-test-y += tests/ 41 40 42 perf-y += perf.o 41 perf-y += perf.o 43 42 44 paths += -DPERF_HTML_PATH="BUILD_STR($(htmldir 43 paths += -DPERF_HTML_PATH="BUILD_STR($(htmldir_SQ))" 45 paths += -DPERF_INFO_PATH="BUILD_STR($(infodir 44 paths += -DPERF_INFO_PATH="BUILD_STR($(infodir_SQ))" 46 paths += -DPERF_MAN_PATH="BUILD_STR($(mandir_S 45 paths += -DPERF_MAN_PATH="BUILD_STR($(mandir_SQ))" 47 46 48 CFLAGS_builtin-help.o += $(paths) 47 CFLAGS_builtin-help.o += $(paths) 49 CFLAGS_builtin-timechart.o += $(paths) 48 CFLAGS_builtin-timechart.o += $(paths) 50 CFLAGS_perf.o += -DPERF_HTML_PATH 49 CFLAGS_perf.o += -DPERF_HTML_PATH="BUILD_STR($(htmldir_SQ))" \ 51 -DPERF_EXEC_PATH 50 -DPERF_EXEC_PATH="BUILD_STR($(perfexecdir_SQ))" \ 52 -DPREFIX="BUILD_ 51 -DPREFIX="BUILD_STR($(prefix_SQ))" 53 CFLAGS_builtin-trace.o += -DSTRACE_GROUPS_ 52 CFLAGS_builtin-trace.o += -DSTRACE_GROUPS_DIR="BUILD_STR($(STRACE_GROUPS_DIR_SQ))" 54 CFLAGS_builtin-report.o += -DTIPDIR="BUILD_ 53 CFLAGS_builtin-report.o += -DTIPDIR="BUILD_STR($(tipdir_SQ))" 55 CFLAGS_builtin-report.o += -DDOCDIR="BUILD_ 54 CFLAGS_builtin-report.o += -DDOCDIR="BUILD_STR($(srcdir_SQ)/Documentation)" 56 55 57 perf-util-y += util/ 56 perf-util-y += util/ 58 perf-util-y += arch/ 57 perf-util-y += arch/ 59 perf-y += arch/ 58 perf-y += arch/ 60 perf-test-y += arch/ 59 perf-test-y += arch/ 61 perf-ui-y += ui/ 60 perf-ui-y += ui/ 62 perf-util-y += scripts/ 61 perf-util-y += scripts/ 63 62 64 gtk-y += ui/gtk/ 63 gtk-y += ui/gtk/ 65 64 66 ifdef SHELLCHECK 65 ifdef SHELLCHECK 67 SHELL_TESTS := $(wildcard *.sh) 66 SHELL_TESTS := $(wildcard *.sh) 68 TEST_LOGS := $(SHELL_TESTS:%=%.shellcheck_lo 67 TEST_LOGS := $(SHELL_TESTS:%=%.shellcheck_log) 69 else 68 else 70 SHELL_TESTS := 69 SHELL_TESTS := 71 TEST_LOGS := 70 TEST_LOGS := 72 endif 71 endif 73 72 74 $(OUTPUT)%.shellcheck_log: % 73 $(OUTPUT)%.shellcheck_log: % 75 $(call rule_mkdir) 74 $(call rule_mkdir) 76 $(Q)$(call echo-cmd,test)shellcheck -s 75 $(Q)$(call echo-cmd,test)shellcheck -s bash -a -S warning "$<" > $@ || (cat $@ && rm $@ && false) 77 76 78 perf-y += $(TEST_LOGS) 77 perf-y += $(TEST_LOGS)
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.