Arnaldo Carvalho de Melo | 5875cf4 | 2019-06-13 18:29:05 -0300 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 |
| 2 | |
Jiri Olsa | f39e042 | 2014-12-29 15:03:09 +0100 | [diff] [blame] | 3 | perf-y += builtin-test.o |
| 4 | perf-y += parse-events.o |
| 5 | perf-y += dso-data.o |
| 6 | perf-y += attr.o |
| 7 | perf-y += vmlinux-kallsyms.o |
Riku Voipio | fbb2df2 | 2015-05-29 12:36:11 -0300 | [diff] [blame] | 8 | perf-y += openat-syscall.o |
| 9 | perf-y += openat-syscall-all-cpus.o |
| 10 | perf-y += openat-syscall-tp-fields.o |
Jiri Olsa | f39e042 | 2014-12-29 15:03:09 +0100 | [diff] [blame] | 11 | perf-y += mmap-basic.o |
| 12 | perf-y += perf-record.o |
Jiri Olsa | f39e042 | 2014-12-29 15:03:09 +0100 | [diff] [blame] | 13 | perf-y += evsel-roundtrip-name.o |
| 14 | perf-y += evsel-tp-sched.o |
| 15 | perf-y += fdarray.o |
| 16 | perf-y += pmu.o |
John Garry | a6c925f | 2020-03-17 19:02:16 +0800 | [diff] [blame] | 17 | perf-y += pmu-events.o |
Jiri Olsa | f39e042 | 2014-12-29 15:03:09 +0100 | [diff] [blame] | 18 | perf-y += hists_common.o |
| 19 | perf-y += hists_link.o |
| 20 | perf-y += hists_filter.o |
| 21 | perf-y += hists_output.o |
| 22 | perf-y += hists_cumulate.o |
| 23 | perf-y += python-use.o |
| 24 | perf-y += bp_signal.o |
| 25 | perf-y += bp_signal_overflow.o |
Jiri Olsa | 032db28 | 2018-03-12 14:45:48 +0100 | [diff] [blame] | 26 | perf-y += bp_account.o |
Ravi Bangoria | 2e85d59 | 2018-09-12 11:42:29 +0530 | [diff] [blame] | 27 | perf-y += wp.o |
Jiri Olsa | f39e042 | 2014-12-29 15:03:09 +0100 | [diff] [blame] | 28 | perf-y += task-exit.o |
| 29 | perf-y += sw-clock.o |
| 30 | perf-y += mmap-thread-lookup.o |
Arnaldo Carvalho de Melo | 6d38267 | 2019-11-25 22:29:18 -0300 | [diff] [blame] | 31 | perf-y += thread-maps-share.o |
Jiri Olsa | f39e042 | 2014-12-29 15:03:09 +0100 | [diff] [blame] | 32 | perf-y += switch-tracking.o |
| 33 | perf-y += keep-tracking.o |
| 34 | perf-y += code-reading.o |
| 35 | perf-y += sample-parsing.o |
| 36 | perf-y += parse-no-sample-id-all.o |
Jiri Olsa | 3c8a67f | 2015-02-05 15:40:25 +0100 | [diff] [blame] | 37 | perf-y += kmod-path.o |
Jiri Olsa | 134aa44 | 2015-06-26 11:29:08 +0200 | [diff] [blame] | 38 | perf-y += thread-map.o |
Wang Nan | 7b6982c | 2016-01-25 09:55:48 +0000 | [diff] [blame] | 39 | perf-y += llvm.o llvm-src-base.o llvm-src-kbuild.o llvm-src-prologue.o llvm-src-relocation.o |
Wang Nan | ba1fae4 | 2015-11-06 13:49:43 +0000 | [diff] [blame] | 40 | perf-y += bpf.o |
Kan Liang | c84974e | 2015-09-04 04:58:31 -0400 | [diff] [blame] | 41 | perf-y += topology.o |
Andi Kleen | 3067eaa | 2017-08-16 15:21:56 -0700 | [diff] [blame] | 42 | perf-y += mem.o |
Jiri Olsa | 6c87290 | 2015-10-25 15:51:24 +0100 | [diff] [blame] | 43 | perf-y += cpumap.o |
Jiri Olsa | 6742434 | 2015-10-25 15:51:28 +0100 | [diff] [blame] | 44 | perf-y += stat.o |
Jiri Olsa | a6e5281 | 2015-10-25 15:51:37 +0100 | [diff] [blame] | 45 | perf-y += event_update.o |
Jiri Olsa | b31d660 | 2016-03-24 13:52:20 +0100 | [diff] [blame] | 46 | perf-y += event-times.o |
Andi Kleen | 0751673 | 2017-03-20 13:17:05 -0700 | [diff] [blame] | 47 | perf-y += expr.o |
Wang Nan | ee74701 | 2016-05-09 01:47:51 +0000 | [diff] [blame] | 48 | perf-y += backward-ring-buffer.o |
Masami Hiramatsu | 8e5dc84 | 2016-07-12 19:06:05 +0900 | [diff] [blame] | 49 | perf-y += sdt.o |
Jiri Olsa | 988dd77 | 2016-07-16 18:11:20 +0200 | [diff] [blame] | 50 | perf-y += is_printable_array.o |
Jiri Olsa | ff3e33b | 2016-08-01 20:02:32 +0200 | [diff] [blame] | 51 | perf-y += bitmap.o |
Wang Nan | a074865 | 2016-11-26 07:03:28 +0000 | [diff] [blame] | 52 | perf-y += perf-hooks.o |
Wang Nan | 00b8669 | 2016-11-26 07:03:34 +0000 | [diff] [blame] | 53 | perf-y += clang.o |
Jiri Olsa | 9808143 | 2017-01-09 10:51:55 +0100 | [diff] [blame] | 54 | perf-y += unit_number__scnprintf.o |
Jiri Olsa | 8185850 | 2018-03-09 11:14:36 +0100 | [diff] [blame] | 55 | perf-y += mem2node.o |
Arnaldo Carvalho de Melo | a573268 | 2019-11-25 22:33:02 -0300 | [diff] [blame] | 56 | perf-y += maps.o |
Adrian Hunter | e39a12c | 2019-06-04 16:00:16 +0300 | [diff] [blame] | 57 | perf-y += time-utils-test.o |
Ian Rogers | fa7f7e7 | 2019-11-26 15:59:13 -0800 | [diff] [blame] | 58 | perf-y += genelf.o |
Ian Rogers | e95770a | 2020-04-14 22:40:49 -0700 | [diff] [blame] | 59 | perf-y += api-io.o |
Nick Gasson | 525c821 | 2020-04-27 14:15:16 +0800 | [diff] [blame] | 60 | perf-y += demangle-java-test.o |
Fabian Hemmer | cef7af2 | 2021-02-03 16:15:37 -0500 | [diff] [blame] | 61 | perf-y += demangle-ocaml-test.o |
Stephane Eranian | 7094349 | 2020-05-05 11:29:43 -0700 | [diff] [blame] | 62 | perf-y += pfm.o |
Jiri Olsa | 0a507af | 2020-06-02 23:47:40 +0200 | [diff] [blame] | 63 | perf-y += parse-metric.o |
Remi Bernon | ed21d6d | 2020-08-21 18:52:38 +0200 | [diff] [blame] | 64 | perf-y += pe-file-parsing.o |
Namhyung Kim | 40b74c30 | 2020-09-24 21:44:55 +0900 | [diff] [blame] | 65 | perf-y += expand-cgroup.o |
Leo Yan | 3989bbf | 2020-10-19 18:02:35 +0800 | [diff] [blame] | 66 | perf-y += perf-time-to-tsc.o |
Adrian Hunter | 9f9c9a8 | 2021-08-11 13:10:36 +0300 | [diff] [blame] | 67 | perf-y += dlfilter-test.o |
Marco Elver | 5504f67 | 2021-11-15 12:28:23 +0100 | [diff] [blame] | 68 | perf-y += sigtrap.o |
Jiri Olsa | f39e042 | 2014-12-29 15:03:09 +0100 | [diff] [blame] | 69 | |
Josh Poimboeuf | 8bda6a6 | 2015-12-13 22:18:03 -0600 | [diff] [blame] | 70 | $(OUTPUT)tests/llvm-src-base.c: tests/bpf-script-example.c tests/Build |
Wang Nan | b31de01 | 2015-11-06 13:49:41 +0000 | [diff] [blame] | 71 | $(call rule_mkdir) |
| 72 | $(Q)echo '#include <tests/llvm.h>' > $@ |
| 73 | $(Q)echo 'const char test_llvm__bpf_base_prog[] =' >> $@ |
| 74 | $(Q)sed -e 's/"/\\"/g' -e 's/\(.*\)/"\1\\n"/g' $< >> $@ |
| 75 | $(Q)echo ';' >> $@ |
| 76 | |
Josh Poimboeuf | 8bda6a6 | 2015-12-13 22:18:03 -0600 | [diff] [blame] | 77 | $(OUTPUT)tests/llvm-src-kbuild.c: tests/bpf-script-test-kbuild.c tests/Build |
Wang Nan | 7af3f3d | 2015-11-06 13:49:42 +0000 | [diff] [blame] | 78 | $(call rule_mkdir) |
| 79 | $(Q)echo '#include <tests/llvm.h>' > $@ |
| 80 | $(Q)echo 'const char test_llvm__bpf_test_kbuild_prog[] =' >> $@ |
| 81 | $(Q)sed -e 's/"/\\"/g' -e 's/\(.*\)/"\1\\n"/g' $< >> $@ |
| 82 | $(Q)echo ';' >> $@ |
| 83 | |
Josh Poimboeuf | 8bda6a6 | 2015-12-13 22:18:03 -0600 | [diff] [blame] | 84 | $(OUTPUT)tests/llvm-src-prologue.c: tests/bpf-script-test-prologue.c tests/Build |
Wang Nan | bbb7d49 | 2015-11-16 12:10:14 +0000 | [diff] [blame] | 85 | $(call rule_mkdir) |
| 86 | $(Q)echo '#include <tests/llvm.h>' > $@ |
| 87 | $(Q)echo 'const char test_llvm__bpf_test_prologue_prog[] =' >> $@ |
| 88 | $(Q)sed -e 's/"/\\"/g' -e 's/\(.*\)/"\1\\n"/g' $< >> $@ |
| 89 | $(Q)echo ';' >> $@ |
| 90 | |
Wang Nan | 7b6982c | 2016-01-25 09:55:48 +0000 | [diff] [blame] | 91 | $(OUTPUT)tests/llvm-src-relocation.c: tests/bpf-script-test-relocation.c tests/Build |
| 92 | $(call rule_mkdir) |
| 93 | $(Q)echo '#include <tests/llvm.h>' > $@ |
| 94 | $(Q)echo 'const char test_llvm__bpf_test_relocation[] =' >> $@ |
| 95 | $(Q)sed -e 's/"/\\"/g' -e 's/\(.*\)/"\1\\n"/g' $< >> $@ |
| 96 | $(Q)echo ';' >> $@ |
| 97 | |
Jiada Wang | 7a759cd | 2017-04-09 20:02:37 -0700 | [diff] [blame] | 98 | ifeq ($(SRCARCH),$(filter $(SRCARCH),x86 arm arm64 powerpc)) |
Jiri Olsa | f39e042 | 2014-12-29 15:03:09 +0100 | [diff] [blame] | 99 | perf-$(CONFIG_DWARF_UNWIND) += dwarf-unwind.o |
| 100 | endif |
| 101 | |
| 102 | CFLAGS_attr.o += -DBINDIR="BUILD_STR($(bindir_SQ))" -DPYTHON="BUILD_STR($(PYTHON_WORD))" |
| 103 | CFLAGS_python-use.o += -DPYTHONPATH="BUILD_STR($(OUTPUT)python)" -DPYTHON="BUILD_STR($(PYTHON_WORD))" |
| 104 | CFLAGS_dwarf-unwind.o += -fno-optimize-sibling-calls |