xref: /linux/tools/perf/tests/Build (revision f4db95b68ae68ebaf91d35cc0487ac1cbd04261e)
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 += tool_pmu.o
70
71ifeq ($(SRCARCH),$(filter $(SRCARCH),x86 arm arm64 powerpc))
72perf-test-$(CONFIG_DWARF_UNWIND) += dwarf-unwind.o
73endif
74
75CFLAGS_python-use.o   += -DPYTHONPATH="BUILD_STR($(OUTPUT)python)" -DPYTHON="BUILD_STR($(PYTHON_WORD))"
76CFLAGS_dwarf-unwind.o += -fno-optimize-sibling-calls
77
78perf-test-y += workloads/
79
80ifdef SHELLCHECK
81  SHELL_TESTS := $(shell find tests/shell -executable -type f -name '*.sh')
82  TEST_LOGS := $(SHELL_TESTS:tests/shell/%=shell/%.shellcheck_log)
83else
84  SHELL_TESTS :=
85  TEST_LOGS :=
86endif
87
88$(OUTPUT)%.shellcheck_log: %
89	$(call rule_mkdir)
90	$(Q)$(call echo-cmd,test)shellcheck -a -S warning "$<" > $@ || (cat $@ && rm $@ && false)
91
92perf-test-y += $(TEST_LOGS)
93