xref: /linux/tools/perf/tests/Build (revision 7f71507851fc7764b36a3221839607d3a45c2025)
1# SPDX-License-Identifier: GPL-2.0
2
3perf-test-y += builtin-test.o
4perf-test-y += tests-scripts.o
5perf-test-y += parse-events.o
6perf-test-y += dso-data.o
7perf-test-y += vmlinux-kallsyms.o
8perf-test-$(CONFIG_LIBTRACEEVENT) += openat-syscall.o
9perf-test-$(CONFIG_LIBTRACEEVENT) += openat-syscall-all-cpus.o
10perf-test-$(CONFIG_LIBTRACEEVENT) += openat-syscall-tp-fields.o
11perf-test-$(CONFIG_LIBTRACEEVENT) += mmap-basic.o
12perf-test-y += perf-record.o
13perf-test-y += evsel-roundtrip-name.o
14perf-test-$(CONFIG_LIBTRACEEVENT) += evsel-tp-sched.o
15perf-test-y += fdarray.o
16perf-test-y += pmu.o
17perf-test-y += pmu-events.o
18perf-test-y += hists_common.o
19perf-test-y += hists_link.o
20perf-test-y += hists_filter.o
21perf-test-y += hists_output.o
22perf-test-y += hists_cumulate.o
23perf-test-y += python-use.o
24perf-test-y += bp_signal.o
25perf-test-y += bp_signal_overflow.o
26perf-test-y += bp_account.o
27perf-test-y += wp.o
28perf-test-y += task-exit.o
29perf-test-y += sw-clock.o
30perf-test-y += mmap-thread-lookup.o
31perf-test-y += thread-maps-share.o
32perf-test-$(CONFIG_LIBTRACEEVENT) += switch-tracking.o
33perf-test-y += keep-tracking.o
34perf-test-y += code-reading.o
35perf-test-y += sample-parsing.o
36perf-test-y += parse-no-sample-id-all.o
37perf-test-y += kmod-path.o
38perf-test-y += thread-map.o
39perf-test-y += topology.o
40perf-test-y += mem.o
41perf-test-y += cpumap.o
42perf-test-y += stat.o
43perf-test-y += event_update.o
44perf-test-y += event-times.o
45perf-test-y += expr.o
46perf-test-y += backward-ring-buffer.o
47perf-test-y += sdt.o
48perf-test-y += is_printable_array.o
49perf-test-y += bitmap.o
50perf-test-y += perf-hooks.o
51perf-test-y += unit_number__scnprintf.o
52perf-test-y += mem2node.o
53perf-test-y += maps.o
54perf-test-y += time-utils-test.o
55perf-test-y += genelf.o
56perf-test-y += api-io.o
57perf-test-y += demangle-java-test.o
58perf-test-y += demangle-ocaml-test.o
59perf-test-y += pfm.o
60perf-test-y += parse-metric.o
61perf-test-y += pe-file-parsing.o
62perf-test-y += expand-cgroup.o
63perf-test-y += perf-time-to-tsc.o
64perf-test-y += dlfilter-test.o
65perf-test-y += sigtrap.o
66perf-test-y += event_groups.o
67perf-test-y += symbols.o
68perf-test-y += util.o
69perf-test-y += hwmon_pmu.o
70perf-test-y += tool_pmu.o
71
72ifeq ($(SRCARCH),$(filter $(SRCARCH),x86 arm arm64 powerpc))
73perf-test-$(CONFIG_DWARF_UNWIND) += dwarf-unwind.o
74endif
75
76CFLAGS_python-use.o   += -DPYTHONPATH="BUILD_STR($(OUTPUT)python)" -DPYTHON="BUILD_STR($(PYTHON_WORD))"
77CFLAGS_dwarf-unwind.o += -fno-optimize-sibling-calls
78
79perf-test-y += workloads/
80
81ifdef SHELLCHECK
82  SHELL_TESTS := $(shell find tests/shell -executable -type f -name '*.sh')
83  TEST_LOGS := $(SHELL_TESTS:tests/shell/%=shell/%.shellcheck_log)
84else
85  SHELL_TESTS :=
86  TEST_LOGS :=
87endif
88
89$(OUTPUT)%.shellcheck_log: %
90	$(call rule_mkdir)
91	$(Q)$(call echo-cmd,test)shellcheck -a -S warning "$<" > $@ || (cat $@ && rm $@ && false)
92
93perf-test-y += $(TEST_LOGS)
94