Path: blob/master/tools/perf/arch/x86/tests/arch-tests.c
54734 views
// SPDX-License-Identifier: GPL-2.01#include <string.h>2#include "tests/tests.h"3#include "arch-tests.h"45#ifdef HAVE_EXTRA_TESTS6DEFINE_SUITE("x86 instruction decoder - new instructions", insn_x86);7#endif89static struct test_case intel_pt_tests[] = {10TEST_CASE("Intel PT packet decoder", intel_pt_pkt_decoder),11TEST_CASE("Intel PT hybrid CPU compatibility", intel_pt_hybrid_compat),12{ .name = NULL, }13};1415struct test_suite suite__intel_pt = {16.desc = "Intel PT",17.test_cases = intel_pt_tests,18};1920#if defined(__x86_64__)21DEFINE_SUITE("x86 bp modify", bp_modify);22#endif23DEFINE_SUITE("AMD IBS via core pmu", amd_ibs_via_core_pmu);24DEFINE_SUITE_EXCLUSIVE("AMD IBS sample period", amd_ibs_period);25static struct test_case hybrid_tests[] = {26TEST_CASE_REASON("x86 hybrid event parsing", hybrid, "not hybrid"),27{ .name = NULL, }28};2930struct test_suite suite__hybrid = {31.desc = "x86 hybrid",32.test_cases = hybrid_tests,33};3435struct test_suite *arch_tests[] = {36#ifdef HAVE_DWARF_UNWIND_SUPPORT37&suite__dwarf_unwind,38#endif39#ifdef HAVE_EXTRA_TESTS40&suite__insn_x86,41#endif42&suite__intel_pt,43#if defined(__x86_64__)44&suite__bp_modify,45#endif46&suite__amd_ibs_via_core_pmu,47&suite__amd_ibs_period,48&suite__hybrid,49&suite__x86_topdown,50NULL,51};525354