xref: /OK3568_Linux_fs/kernel/tools/perf/arch/x86/include/arch-tests.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 */
2*4882a593Smuzhiyun #ifndef ARCH_TESTS_H
3*4882a593Smuzhiyun #define ARCH_TESTS_H
4*4882a593Smuzhiyun 
5*4882a593Smuzhiyun #include <linux/compiler.h>
6*4882a593Smuzhiyun struct test;
7*4882a593Smuzhiyun 
8*4882a593Smuzhiyun /* Tests */
9*4882a593Smuzhiyun int test__rdpmc(struct test *test __maybe_unused, int subtest);
10*4882a593Smuzhiyun int test__perf_time_to_tsc(struct test *test __maybe_unused, int subtest);
11*4882a593Smuzhiyun int test__insn_x86(struct test *test __maybe_unused, int subtest);
12*4882a593Smuzhiyun int test__intel_pt_pkt_decoder(struct test *test, int subtest);
13*4882a593Smuzhiyun int test__bp_modify(struct test *test, int subtest);
14*4882a593Smuzhiyun 
15*4882a593Smuzhiyun #ifdef HAVE_DWARF_UNWIND_SUPPORT
16*4882a593Smuzhiyun struct thread;
17*4882a593Smuzhiyun struct perf_sample;
18*4882a593Smuzhiyun int test__arch_unwind_sample(struct perf_sample *sample,
19*4882a593Smuzhiyun 			     struct thread *thread);
20*4882a593Smuzhiyun #endif
21*4882a593Smuzhiyun 
22*4882a593Smuzhiyun extern struct test arch_tests[];
23*4882a593Smuzhiyun 
24*4882a593Smuzhiyun #endif
25