Path: blob/master/tools/perf/arch/x86/tests/arch-tests.c
26288 views
// SPDX-License-Identifier: GPL-2.01#include <string.h>2#include "tests/tests.h"3#include "arch-tests.h"45#ifdef HAVE_AUXTRACE_SUPPORT6#ifdef HAVE_EXTRA_TESTS7DEFINE_SUITE("x86 instruction decoder - new instructions", insn_x86);8#endif910static struct test_case intel_pt_tests[] = {11TEST_CASE("Intel PT packet decoder", intel_pt_pkt_decoder),12TEST_CASE("Intel PT hybrid CPU compatibility", intel_pt_hybrid_compat),13{ .name = NULL, }14};1516struct test_suite suite__intel_pt = {17.desc = "Intel PT",18.test_cases = intel_pt_tests,19};2021#endif22#if defined(__x86_64__)23DEFINE_SUITE("x86 bp modify", bp_modify);24#endif25DEFINE_SUITE("AMD IBS via core pmu", amd_ibs_via_core_pmu);26DEFINE_SUITE_EXCLUSIVE("AMD IBS sample period", amd_ibs_period);27static struct test_case hybrid_tests[] = {28TEST_CASE_REASON("x86 hybrid event parsing", hybrid, "not hybrid"),29{ .name = NULL, }30};3132struct test_suite suite__hybrid = {33.desc = "x86 hybrid",34.test_cases = hybrid_tests,35};3637struct test_suite *arch_tests[] = {38#ifdef HAVE_DWARF_UNWIND_SUPPORT39&suite__dwarf_unwind,40#endif41#ifdef HAVE_AUXTRACE_SUPPORT42#ifdef HAVE_EXTRA_TESTS43&suite__insn_x86,44#endif45&suite__intel_pt,46#endif47#if defined(__x86_64__)48&suite__bp_modify,49#endif50&suite__amd_ibs_via_core_pmu,51&suite__amd_ibs_period,52&suite__hybrid,53&suite__x86_topdown,54NULL,55};565758