xref: /linux/tools/perf/arch/x86/tests/arch-tests.c (revision 202779456dc5b75d07b214064161ef6a2421e8be)
1 // SPDX-License-Identifier: GPL-2.0
2 #include <string.h>
3 #include "tests/tests.h"
4 #include "arch-tests.h"
5 
6 #ifdef HAVE_AUXTRACE_SUPPORT
7 DEFINE_SUITE("x86 instruction decoder - new instructions", insn_x86);
8 
9 static struct test_case intel_pt_tests[] = {
10 	TEST_CASE("Intel PT packet decoder", intel_pt_pkt_decoder),
11 	TEST_CASE("Intel PT hybrid CPU compatibility", intel_pt_hybrid_compat),
12 	{ .name = NULL, }
13 };
14 
15 struct test_suite suite__intel_pt = {
16 	.desc = "Intel PT",
17 	.test_cases = intel_pt_tests,
18 };
19 
20 #endif
21 #if defined(__x86_64__)
22 DEFINE_SUITE("x86 bp modify", bp_modify);
23 #endif
24 DEFINE_SUITE("x86 Sample parsing", x86_sample_parsing);
25 
26 struct test_suite *arch_tests[] = {
27 #ifdef HAVE_DWARF_UNWIND_SUPPORT
28 	&suite__dwarf_unwind,
29 #endif
30 #ifdef HAVE_AUXTRACE_SUPPORT
31 	&suite__insn_x86,
32 	&suite__intel_pt,
33 #endif
34 #if defined(__x86_64__)
35 	&suite__bp_modify,
36 #endif
37 	&suite__x86_sample_parsing,
38 	NULL,
39 };
40