xref: /openbmc/linux/tools/perf/tests/Build (revision 6d38267c)
15875cf4cSArnaldo Carvalho de Melo# SPDX-License-Identifier: GPL-2.0
25875cf4cSArnaldo Carvalho de Melo
3f39e042aSJiri Olsaperf-y += builtin-test.o
4f39e042aSJiri Olsaperf-y += parse-events.o
5f39e042aSJiri Olsaperf-y += dso-data.o
6f39e042aSJiri Olsaperf-y += attr.o
7f39e042aSJiri Olsaperf-y += vmlinux-kallsyms.o
8fbb2df23SRiku Voipioperf-y += openat-syscall.o
9fbb2df23SRiku Voipioperf-y += openat-syscall-all-cpus.o
10fbb2df23SRiku Voipioperf-y += openat-syscall-tp-fields.o
11f39e042aSJiri Olsaperf-y += mmap-basic.o
12f39e042aSJiri Olsaperf-y += perf-record.o
13f39e042aSJiri Olsaperf-y += evsel-roundtrip-name.o
14f39e042aSJiri Olsaperf-y += evsel-tp-sched.o
15f39e042aSJiri Olsaperf-y += fdarray.o
16f39e042aSJiri Olsaperf-y += pmu.o
17f39e042aSJiri Olsaperf-y += hists_common.o
18f39e042aSJiri Olsaperf-y += hists_link.o
19f39e042aSJiri Olsaperf-y += hists_filter.o
20f39e042aSJiri Olsaperf-y += hists_output.o
21f39e042aSJiri Olsaperf-y += hists_cumulate.o
22f39e042aSJiri Olsaperf-y += python-use.o
23f39e042aSJiri Olsaperf-y += bp_signal.o
24f39e042aSJiri Olsaperf-y += bp_signal_overflow.o
25032db28eSJiri Olsaperf-y += bp_account.o
262e85d597SRavi Bangoriaperf-y += wp.o
27f39e042aSJiri Olsaperf-y += task-exit.o
28f39e042aSJiri Olsaperf-y += sw-clock.o
29f39e042aSJiri Olsaperf-y += mmap-thread-lookup.o
306d38267cSArnaldo Carvalho de Meloperf-y += thread-maps-share.o
31f39e042aSJiri Olsaperf-y += switch-tracking.o
32f39e042aSJiri Olsaperf-y += keep-tracking.o
33f39e042aSJiri Olsaperf-y += code-reading.o
34f39e042aSJiri Olsaperf-y += sample-parsing.o
35f39e042aSJiri Olsaperf-y += parse-no-sample-id-all.o
363c8a67f5SJiri Olsaperf-y += kmod-path.o
37134aa44fSJiri Olsaperf-y += thread-map.o
387b6982ceSWang Nanperf-y += llvm.o llvm-src-base.o llvm-src-kbuild.o llvm-src-prologue.o llvm-src-relocation.o
39ba1fae43SWang Nanperf-y += bpf.o
40c84974edSKan Liangperf-y += topology.o
413067eaa7SAndi Kleenperf-y += mem.o
426c872901SJiri Olsaperf-y += cpumap.o
4367424342SJiri Olsaperf-y += stat.o
44a6e52817SJiri Olsaperf-y += event_update.o
45b31d660dSJiri Olsaperf-y += event-times.o
4607516736SAndi Kleenperf-y += expr.o
47ee74701eSWang Nanperf-y += backward-ring-buffer.o
488e5dc848SMasami Hiramatsuperf-y += sdt.o
49988dd774SJiri Olsaperf-y += is_printable_array.o
50ff3e33b0SJiri Olsaperf-y += bitmap.o
51a074865eSWang Nanperf-y += perf-hooks.o
5200b86691SWang Nanperf-y += clang.o
539808143bSJiri Olsaperf-y += unit_number__scnprintf.o
548185850aSJiri Olsaperf-y += mem2node.o
554f600bcfSJiri Olsaperf-y += map_groups.o
56e39a12cbSAdrian Hunterperf-y += time-utils-test.o
57f39e042aSJiri Olsa
588bda6a63SJosh Poimboeuf$(OUTPUT)tests/llvm-src-base.c: tests/bpf-script-example.c tests/Build
59b31de018SWang Nan	$(call rule_mkdir)
60b31de018SWang Nan	$(Q)echo '#include <tests/llvm.h>' > $@
61b31de018SWang Nan	$(Q)echo 'const char test_llvm__bpf_base_prog[] =' >> $@
62b31de018SWang Nan	$(Q)sed -e 's/"/\\"/g' -e 's/\(.*\)/"\1\\n"/g' $< >> $@
63b31de018SWang Nan	$(Q)echo ';' >> $@
64b31de018SWang Nan
658bda6a63SJosh Poimboeuf$(OUTPUT)tests/llvm-src-kbuild.c: tests/bpf-script-test-kbuild.c tests/Build
667af3f3d5SWang Nan	$(call rule_mkdir)
677af3f3d5SWang Nan	$(Q)echo '#include <tests/llvm.h>' > $@
687af3f3d5SWang Nan	$(Q)echo 'const char test_llvm__bpf_test_kbuild_prog[] =' >> $@
697af3f3d5SWang Nan	$(Q)sed -e 's/"/\\"/g' -e 's/\(.*\)/"\1\\n"/g' $< >> $@
707af3f3d5SWang Nan	$(Q)echo ';' >> $@
717af3f3d5SWang Nan
728bda6a63SJosh Poimboeuf$(OUTPUT)tests/llvm-src-prologue.c: tests/bpf-script-test-prologue.c tests/Build
73bbb7d492SWang Nan	$(call rule_mkdir)
74bbb7d492SWang Nan	$(Q)echo '#include <tests/llvm.h>' > $@
75bbb7d492SWang Nan	$(Q)echo 'const char test_llvm__bpf_test_prologue_prog[] =' >> $@
76bbb7d492SWang Nan	$(Q)sed -e 's/"/\\"/g' -e 's/\(.*\)/"\1\\n"/g' $< >> $@
77bbb7d492SWang Nan	$(Q)echo ';' >> $@
78bbb7d492SWang Nan
797b6982ceSWang Nan$(OUTPUT)tests/llvm-src-relocation.c: tests/bpf-script-test-relocation.c tests/Build
807b6982ceSWang Nan	$(call rule_mkdir)
817b6982ceSWang Nan	$(Q)echo '#include <tests/llvm.h>' > $@
827b6982ceSWang Nan	$(Q)echo 'const char test_llvm__bpf_test_relocation[] =' >> $@
837b6982ceSWang Nan	$(Q)sed -e 's/"/\\"/g' -e 's/\(.*\)/"\1\\n"/g' $< >> $@
847b6982ceSWang Nan	$(Q)echo ';' >> $@
857b6982ceSWang Nan
867a759cd8SJiada Wangifeq ($(SRCARCH),$(filter $(SRCARCH),x86 arm arm64 powerpc))
87f39e042aSJiri Olsaperf-$(CONFIG_DWARF_UNWIND) += dwarf-unwind.o
88f39e042aSJiri Olsaendif
89f39e042aSJiri Olsa
90f39e042aSJiri OlsaCFLAGS_attr.o         += -DBINDIR="BUILD_STR($(bindir_SQ))" -DPYTHON="BUILD_STR($(PYTHON_WORD))"
91f39e042aSJiri OlsaCFLAGS_python-use.o   += -DPYTHONPATH="BUILD_STR($(OUTPUT)python)" -DPYTHON="BUILD_STR($(PYTHON_WORD))"
92f39e042aSJiri OlsaCFLAGS_dwarf-unwind.o += -fno-optimize-sibling-calls
93