blob: 803ca426f8e65d86433659f1be9aafa3ef593443 [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
Fabian Hemmercef7af22021-02-03 16:15:37 -050061perf-y += demangle-ocaml-test.o
Stephane Eranian70943492020-05-05 11:29:43 -070062perf-y += pfm.o
Jiri Olsa0a507af2020-06-02 23:47:40 +020063perf-y += parse-metric.o
Remi Bernoned21d6d2020-08-21 18:52:38 +020064perf-y += pe-file-parsing.o
Namhyung Kim40b74c302020-09-24 21:44:55 +090065perf-y += expand-cgroup.o
Leo Yan3989bbf2020-10-19 18:02:35 +080066perf-y += perf-time-to-tsc.o
Adrian Hunter9f9c9a82021-08-11 13:10:36 +030067perf-y += dlfilter-test.o
Jiri Olsaf39e0422014-12-29 15:03:09 +010068
Josh Poimboeuf8bda6a62015-12-13 22:18:03 -060069$(OUTPUT)tests/llvm-src-base.c: tests/bpf-script-example.c tests/Build
Wang Nanb31de012015-11-06 13:49:41 +000070 $(call rule_mkdir)
71 $(Q)echo '#include <tests/llvm.h>' > $@
72 $(Q)echo 'const char test_llvm__bpf_base_prog[] =' >> $@
73 $(Q)sed -e 's/"/\\"/g' -e 's/\(.*\)/"\1\\n"/g' $< >> $@
74 $(Q)echo ';' >> $@
75
Josh Poimboeuf8bda6a62015-12-13 22:18:03 -060076$(OUTPUT)tests/llvm-src-kbuild.c: tests/bpf-script-test-kbuild.c tests/Build
Wang Nan7af3f3d2015-11-06 13:49:42 +000077 $(call rule_mkdir)
78 $(Q)echo '#include <tests/llvm.h>' > $@
79 $(Q)echo 'const char test_llvm__bpf_test_kbuild_prog[] =' >> $@
80 $(Q)sed -e 's/"/\\"/g' -e 's/\(.*\)/"\1\\n"/g' $< >> $@
81 $(Q)echo ';' >> $@
82
Josh Poimboeuf8bda6a62015-12-13 22:18:03 -060083$(OUTPUT)tests/llvm-src-prologue.c: tests/bpf-script-test-prologue.c tests/Build
Wang Nanbbb7d492015-11-16 12:10:14 +000084 $(call rule_mkdir)
85 $(Q)echo '#include <tests/llvm.h>' > $@
86 $(Q)echo 'const char test_llvm__bpf_test_prologue_prog[] =' >> $@
87 $(Q)sed -e 's/"/\\"/g' -e 's/\(.*\)/"\1\\n"/g' $< >> $@
88 $(Q)echo ';' >> $@
89
Wang Nan7b6982c2016-01-25 09:55:48 +000090$(OUTPUT)tests/llvm-src-relocation.c: tests/bpf-script-test-relocation.c tests/Build
91 $(call rule_mkdir)
92 $(Q)echo '#include <tests/llvm.h>' > $@
93 $(Q)echo 'const char test_llvm__bpf_test_relocation[] =' >> $@
94 $(Q)sed -e 's/"/\\"/g' -e 's/\(.*\)/"\1\\n"/g' $< >> $@
95 $(Q)echo ';' >> $@
96
Jiada Wang7a759cd2017-04-09 20:02:37 -070097ifeq ($(SRCARCH),$(filter $(SRCARCH),x86 arm arm64 powerpc))
Jiri Olsaf39e0422014-12-29 15:03:09 +010098perf-$(CONFIG_DWARF_UNWIND) += dwarf-unwind.o
99endif
100
101CFLAGS_attr.o += -DBINDIR="BUILD_STR($(bindir_SQ))" -DPYTHON="BUILD_STR($(PYTHON_WORD))"
102CFLAGS_python-use.o += -DPYTHONPATH="BUILD_STR($(OUTPUT)python)" -DPYTHON="BUILD_STR($(PYTHON_WORD))"
103CFLAGS_dwarf-unwind.o += -fno-optimize-sibling-calls