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 DEFINE_SUITE("AMD IBS via core pmu", amd_ibs_via_core_pmu); 26 27 struct test_suite *arch_tests[] = { 28 #ifdef HAVE_DWARF_UNWIND_SUPPORT 29 &suite__dwarf_unwind, 30 #endif 31 #ifdef HAVE_AUXTRACE_SUPPORT 32 &suite__insn_x86, 33 &suite__intel_pt, 34 #endif 35 #if defined(__x86_64__) 36 &suite__bp_modify, 37 #endif 38 &suite__x86_sample_parsing, 39 &suite__amd_ibs_via_core_pmu, 40 NULL, 41 }; 42