blob: aa4dc4f5abde0b5c5be5724939fb2e47cf8fcef3 [file] [log] [blame]
Arnaldo Carvalho de Melo5875cf42019-06-13 18:29:05 -03001# SPDX-License-Identifier: GPL-2.0
2
Jiri Olsaf39e0422014-12-29 15:03:09 +01003perf-y += builtin-test.o
4perf-y += parse-events.o
5perf-y += dso-data.o
6perf-y += attr.o
7perf-y += vmlinux-kallsyms.o
Riku Voipiofbb2df22015-05-29 12:36:11 -03008perf-y += openat-syscall.o
9perf-y += openat-syscall-all-cpus.o
10perf-y += openat-syscall-tp-fields.o
Jiri Olsaf39e0422014-12-29 15:03:09 +010011perf-y += mmap-basic.o
12perf-y += perf-record.o
Jiri Olsaf39e0422014-12-29 15:03:09 +010013perf-y += evsel-roundtrip-name.o
14perf-y += evsel-tp-sched.o
15perf-y += fdarray.o
16perf-y += pmu.o
John Garrya6c925f2020-03-17 19:02:16 +080017perf-y += pmu-events.o
Jiri Olsaf39e0422014-12-29 15:03:09 +010018perf-y += hists_common.o
19perf-y += hists_link.o
20perf-y += hists_filter.o
21perf-y += hists_output.o
22perf-y += hists_cumulate.o
23perf-y += python-use.o
24perf-y += bp_signal.o
25perf-y += bp_signal_overflow.o
Jiri Olsa032db282018-03-12 14:45:48 +010026perf-y += bp_account.o
Ravi Bangoria2e85d592018-09-12 11:42:29 +053027perf-y += wp.o
Jiri Olsaf39e0422014-12-29 15:03:09 +010028perf-y += task-exit.o
29perf-y += sw-clock.o
30perf-y += mmap-thread-lookup.o
Arnaldo Carvalho de Melo6d382672019-11-25 22:29:18 -030031perf-y += thread-maps-share.o
Jiri Olsaf39e0422014-12-29 15:03:09 +010032perf-y += switch-tracking.o
33perf-y += keep-tracking.o
34perf-y += code-reading.o
35perf-y += sample-parsing.o
36perf-y += parse-no-sample-id-all.o
Jiri Olsa3c8a67f2015-02-05 15:40:25 +010037perf-y += kmod-path.o
Jiri Olsa134aa442015-06-26 11:29:08 +020038perf-y += thread-map.o
Wang Nan7b6982c2016-01-25 09:55:48 +000039perf-y += llvm.o llvm-src-base.o llvm-src-kbuild.o llvm-src-prologue.o llvm-src-relocation.o
Wang Nanba1fae42015-11-06 13:49:43 +000040perf-y += bpf.o
Kan Liangc84974e2015-09-04 04:58:31 -040041perf-y += topology.o
Andi Kleen3067eaa2017-08-16 15:21:56 -070042perf-y += mem.o
Jiri Olsa6c872902015-10-25 15:51:24 +010043perf-y += cpumap.o
Jiri Olsa67424342015-10-25 15:51:28 +010044perf-y += stat.o
Jiri Olsaa6e52812015-10-25 15:51:37 +010045perf-y += event_update.o
Jiri Olsab31d6602016-03-24 13:52:20 +010046perf-y += event-times.o
Andi Kleen07516732017-03-20 13:17:05 -070047perf-y += expr.o
Wang Nanee747012016-05-09 01:47:51 +000048perf-y += backward-ring-buffer.o
Masami Hiramatsu8e5dc842016-07-12 19:06:05 +090049perf-y += sdt.o
Jiri Olsa988dd772016-07-16 18:11:20 +020050perf-y += is_printable_array.o
Jiri Olsaff3e33b2016-08-01 20:02:32 +020051perf-y += bitmap.o
Wang Nana0748652016-11-26 07:03:28 +000052perf-y += perf-hooks.o
Wang Nan00b86692016-11-26 07:03:34 +000053perf-y += clang.o
Jiri Olsa98081432017-01-09 10:51:55 +010054perf-y += unit_number__scnprintf.o
Jiri Olsa81858502018-03-09 11:14:36 +010055perf-y += mem2node.o
Arnaldo Carvalho de Meloa5732682019-11-25 22:33:02 -030056perf-y += maps.o
Adrian Huntere39a12c2019-06-04 16:00:16 +030057perf-y += time-utils-test.o
Ian Rogersfa7f7e72019-11-26 15:59:13 -080058perf-y += genelf.o
Ian Rogerse95770a2020-04-14 22:40:49 -070059perf-y += api-io.o
Nick Gasson525c8212020-04-27 14:15:16 +080060perf-y += demangle-java-test.o
Stephane Eranian70943492020-05-05 11:29:43 -070061perf-y += pfm.o
Jiri Olsa0a507af2020-06-02 23:47:40 +020062perf-y += parse-metric.o
Remi Bernoned21d6d2020-08-21 18:52:38 +020063perf-y += pe-file-parsing.o
Namhyung Kim40b74c302020-09-24 21:44:55 +090064perf-y += expand-cgroup.o
Leo Yan3989bbf2020-10-19 18:02:35 +080065perf-y += perf-time-to-tsc.o
Jiri Olsaf39e0422014-12-29 15:03:09 +010066
Josh Poimboeuf8bda6a62015-12-13 22:18:03 -060067$(OUTPUT)tests/llvm-src-base.c: tests/bpf-script-example.c tests/Build
Wang Nanb31de012015-11-06 13:49:41 +000068 $(call rule_mkdir)
69 $(Q)echo '#include <tests/llvm.h>' > $@
70 $(Q)echo 'const char test_llvm__bpf_base_prog[] =' >> $@
71 $(Q)sed -e 's/"/\\"/g' -e 's/\(.*\)/"\1\\n"/g' $< >> $@
72 $(Q)echo ';' >> $@
73
Josh Poimboeuf8bda6a62015-12-13 22:18:03 -060074$(OUTPUT)tests/llvm-src-kbuild.c: tests/bpf-script-test-kbuild.c tests/Build
Wang Nan7af3f3d2015-11-06 13:49:42 +000075 $(call rule_mkdir)
76 $(Q)echo '#include <tests/llvm.h>' > $@
77 $(Q)echo 'const char test_llvm__bpf_test_kbuild_prog[] =' >> $@
78 $(Q)sed -e 's/"/\\"/g' -e 's/\(.*\)/"\1\\n"/g' $< >> $@
79 $(Q)echo ';' >> $@
80
Josh Poimboeuf8bda6a62015-12-13 22:18:03 -060081$(OUTPUT)tests/llvm-src-prologue.c: tests/bpf-script-test-prologue.c tests/Build
Wang Nanbbb7d492015-11-16 12:10:14 +000082 $(call rule_mkdir)
83 $(Q)echo '#include <tests/llvm.h>' > $@
84 $(Q)echo 'const char test_llvm__bpf_test_prologue_prog[] =' >> $@
85 $(Q)sed -e 's/"/\\"/g' -e 's/\(.*\)/"\1\\n"/g' $< >> $@
86 $(Q)echo ';' >> $@
87
Wang Nan7b6982c2016-01-25 09:55:48 +000088$(OUTPUT)tests/llvm-src-relocation.c: tests/bpf-script-test-relocation.c tests/Build
89 $(call rule_mkdir)
90 $(Q)echo '#include <tests/llvm.h>' > $@
91 $(Q)echo 'const char test_llvm__bpf_test_relocation[] =' >> $@
92 $(Q)sed -e 's/"/\\"/g' -e 's/\(.*\)/"\1\\n"/g' $< >> $@
93 $(Q)echo ';' >> $@
94
Jiada Wang7a759cd2017-04-09 20:02:37 -070095ifeq ($(SRCARCH),$(filter $(SRCARCH),x86 arm arm64 powerpc))
Jiri Olsaf39e0422014-12-29 15:03:09 +010096perf-$(CONFIG_DWARF_UNWIND) += dwarf-unwind.o
97endif
98
99CFLAGS_attr.o += -DBINDIR="BUILD_STR($(bindir_SQ))" -DPYTHON="BUILD_STR($(PYTHON_WORD))"
100CFLAGS_python-use.o += -DPYTHONPATH="BUILD_STR($(OUTPUT)python)" -DPYTHON="BUILD_STR($(PYTHON_WORD))"
101CFLAGS_dwarf-unwind.o += -fno-optimize-sibling-calls