xref: /openbmc/linux/tools/perf/tests/Build (revision f215054d)
15875cf4cSArnaldo Carvalho de Melo# SPDX-License-Identifier: GPL-2.0
25875cf4cSArnaldo Carvalho de Melo
3f39e042aSJiri Olsaperf-y += builtin-test.o
47391db64SCarsten Haitzlerperf-y += builtin-test-list.o
5f39e042aSJiri Olsaperf-y += parse-events.o
6f39e042aSJiri Olsaperf-y += dso-data.o
7f39e042aSJiri Olsaperf-y += attr.o
8f39e042aSJiri Olsaperf-y += vmlinux-kallsyms.o
9fbb2df23SRiku Voipioperf-y += openat-syscall.o
10fbb2df23SRiku Voipioperf-y += openat-syscall-all-cpus.o
11fbb2df23SRiku Voipioperf-y += openat-syscall-tp-fields.o
12f39e042aSJiri Olsaperf-y += mmap-basic.o
13f39e042aSJiri Olsaperf-y += perf-record.o
14f39e042aSJiri Olsaperf-y += evsel-roundtrip-name.o
15f39e042aSJiri Olsaperf-y += evsel-tp-sched.o
16f39e042aSJiri Olsaperf-y += fdarray.o
17f39e042aSJiri Olsaperf-y += pmu.o
18a6c925fdSJohn Garryperf-y += pmu-events.o
19f39e042aSJiri Olsaperf-y += hists_common.o
20f39e042aSJiri Olsaperf-y += hists_link.o
21f39e042aSJiri Olsaperf-y += hists_filter.o
22f39e042aSJiri Olsaperf-y += hists_output.o
23f39e042aSJiri Olsaperf-y += hists_cumulate.o
24f39e042aSJiri Olsaperf-y += python-use.o
25f39e042aSJiri Olsaperf-y += bp_signal.o
26f39e042aSJiri Olsaperf-y += bp_signal_overflow.o
27032db28eSJiri Olsaperf-y += bp_account.o
282e85d597SRavi Bangoriaperf-y += wp.o
29f39e042aSJiri Olsaperf-y += task-exit.o
30f39e042aSJiri Olsaperf-y += sw-clock.o
31f39e042aSJiri Olsaperf-y += mmap-thread-lookup.o
326d38267cSArnaldo Carvalho de Meloperf-y += thread-maps-share.o
33f39e042aSJiri Olsaperf-y += switch-tracking.o
34f39e042aSJiri Olsaperf-y += keep-tracking.o
35f39e042aSJiri Olsaperf-y += code-reading.o
36f39e042aSJiri Olsaperf-y += sample-parsing.o
37f39e042aSJiri Olsaperf-y += parse-no-sample-id-all.o
383c8a67f5SJiri Olsaperf-y += kmod-path.o
39134aa44fSJiri Olsaperf-y += thread-map.o
407b6982ceSWang Nanperf-y += llvm.o llvm-src-base.o llvm-src-kbuild.o llvm-src-prologue.o llvm-src-relocation.o
41ba1fae43SWang Nanperf-y += bpf.o
42c84974edSKan Liangperf-y += topology.o
433067eaa7SAndi Kleenperf-y += mem.o
446c872901SJiri Olsaperf-y += cpumap.o
4567424342SJiri Olsaperf-y += stat.o
46a6e52817SJiri Olsaperf-y += event_update.o
47b31d660dSJiri Olsaperf-y += event-times.o
4807516736SAndi Kleenperf-y += expr.o
49ee74701eSWang Nanperf-y += backward-ring-buffer.o
508e5dc848SMasami Hiramatsuperf-y += sdt.o
51988dd774SJiri Olsaperf-y += is_printable_array.o
52ff3e33b0SJiri Olsaperf-y += bitmap.o
53a074865eSWang Nanperf-y += perf-hooks.o
5400b86691SWang Nanperf-y += clang.o
559808143bSJiri Olsaperf-y += unit_number__scnprintf.o
568185850aSJiri Olsaperf-y += mem2node.o
57a5732681SArnaldo Carvalho de Meloperf-y += maps.o
58e39a12cbSAdrian Hunterperf-y += time-utils-test.o
59fa7f7e73SIan Rogersperf-y += genelf.o
60e95770afSIan Rogersperf-y += api-io.o
61525c821dSNick Gassonperf-y += demangle-java-test.o
62cef7af25SFabian Hemmerperf-y += demangle-ocaml-test.o
6370943490SStephane Eranianperf-y += pfm.o
640a507af9SJiri Olsaperf-y += parse-metric.o
65ed21d6d7SRemi Bernonperf-y += pe-file-parsing.o
6640b74c30SNamhyung Kimperf-y += expand-cgroup.o
673989bbf9SLeo Yanperf-y += perf-time-to-tsc.o
689f9c9a8dSAdrian Hunterperf-y += dlfilter-test.o
695504f679SMarco Elverperf-y += sigtrap.o
70f39e042aSJiri Olsa
718bda6a63SJosh Poimboeuf$(OUTPUT)tests/llvm-src-base.c: tests/bpf-script-example.c tests/Build
72b31de018SWang Nan	$(call rule_mkdir)
73b31de018SWang Nan	$(Q)echo '#include <tests/llvm.h>' > $@
74b31de018SWang Nan	$(Q)echo 'const char test_llvm__bpf_base_prog[] =' >> $@
75b31de018SWang Nan	$(Q)sed -e 's/"/\\"/g' -e 's/\(.*\)/"\1\\n"/g' $< >> $@
76b31de018SWang Nan	$(Q)echo ';' >> $@
77b31de018SWang Nan
788bda6a63SJosh Poimboeuf$(OUTPUT)tests/llvm-src-kbuild.c: tests/bpf-script-test-kbuild.c tests/Build
797af3f3d5SWang Nan	$(call rule_mkdir)
807af3f3d5SWang Nan	$(Q)echo '#include <tests/llvm.h>' > $@
817af3f3d5SWang Nan	$(Q)echo 'const char test_llvm__bpf_test_kbuild_prog[] =' >> $@
827af3f3d5SWang Nan	$(Q)sed -e 's/"/\\"/g' -e 's/\(.*\)/"\1\\n"/g' $< >> $@
837af3f3d5SWang Nan	$(Q)echo ';' >> $@
847af3f3d5SWang Nan
858bda6a63SJosh Poimboeuf$(OUTPUT)tests/llvm-src-prologue.c: tests/bpf-script-test-prologue.c tests/Build
86bbb7d492SWang Nan	$(call rule_mkdir)
87bbb7d492SWang Nan	$(Q)echo '#include <tests/llvm.h>' > $@
88bbb7d492SWang Nan	$(Q)echo 'const char test_llvm__bpf_test_prologue_prog[] =' >> $@
89bbb7d492SWang Nan	$(Q)sed -e 's/"/\\"/g' -e 's/\(.*\)/"\1\\n"/g' $< >> $@
90bbb7d492SWang Nan	$(Q)echo ';' >> $@
91bbb7d492SWang Nan
927b6982ceSWang Nan$(OUTPUT)tests/llvm-src-relocation.c: tests/bpf-script-test-relocation.c tests/Build
937b6982ceSWang Nan	$(call rule_mkdir)
947b6982ceSWang Nan	$(Q)echo '#include <tests/llvm.h>' > $@
957b6982ceSWang Nan	$(Q)echo 'const char test_llvm__bpf_test_relocation[] =' >> $@
967b6982ceSWang Nan	$(Q)sed -e 's/"/\\"/g' -e 's/\(.*\)/"\1\\n"/g' $< >> $@
977b6982ceSWang Nan	$(Q)echo ';' >> $@
987b6982ceSWang Nan
997a759cd8SJiada Wangifeq ($(SRCARCH),$(filter $(SRCARCH),x86 arm arm64 powerpc))
100f39e042aSJiri Olsaperf-$(CONFIG_DWARF_UNWIND) += dwarf-unwind.o
101f39e042aSJiri Olsaendif
102f39e042aSJiri Olsa
103f39e042aSJiri OlsaCFLAGS_attr.o         += -DBINDIR="BUILD_STR($(bindir_SQ))" -DPYTHON="BUILD_STR($(PYTHON_WORD))"
104f39e042aSJiri OlsaCFLAGS_python-use.o   += -DPYTHONPATH="BUILD_STR($(OUTPUT)python)" -DPYTHON="BUILD_STR($(PYTHON_WORD))"
105f39e042aSJiri OlsaCFLAGS_dwarf-unwind.o += -fno-optimize-sibling-calls
106*f215054dSNamhyung Kim
107*f215054dSNamhyung Kimperf-y += workloads/
108