1*b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */ 231b6753fSMatt Fleming #ifndef ARCH_TESTS_H 331b6753fSMatt Fleming #define ARCH_TESTS_H 431b6753fSMatt Fleming 581f17c90SArnaldo Carvalho de Melo #include <linux/compiler.h> 681f17c90SArnaldo Carvalho de Melo struct test; 781f17c90SArnaldo Carvalho de Melo 8d8b167f9SMatt Fleming /* Tests */ 981f17c90SArnaldo Carvalho de Melo int test__rdpmc(struct test *test __maybe_unused, int subtest); 1081f17c90SArnaldo Carvalho de Melo int test__perf_time_to_tsc(struct test *test __maybe_unused, int subtest); 1181f17c90SArnaldo Carvalho de Melo int test__insn_x86(struct test *test __maybe_unused, int subtest); 1281f17c90SArnaldo Carvalho de Melo int test__intel_cqm_count_nmi_context(struct test *test __maybe_unused, int subtest); 13d8b167f9SMatt Fleming 14d8b167f9SMatt Fleming #ifdef HAVE_DWARF_UNWIND_SUPPORT 15d8b167f9SMatt Fleming struct thread; 16d8b167f9SMatt Fleming struct perf_sample; 17d8b167f9SMatt Fleming int test__arch_unwind_sample(struct perf_sample *sample, 18d8b167f9SMatt Fleming struct thread *thread); 19d8b167f9SMatt Fleming #endif 20d8b167f9SMatt Fleming 2131b6753fSMatt Fleming extern struct test arch_tests[]; 2231b6753fSMatt Fleming 2331b6753fSMatt Fleming #endif 24