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