The kernel driver assumes hybrid CPUs will have Intel PT capabilities that are compatible with the boot CPU. Add a test to check that is the case. Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Acked-by: Namhyung Kim <namhyung@kernel.org> Cc: Ian Rogers <irogers@google.com> Cc: Jiri Olsa <jolsa@kernel.org> Link: https://lore.kernel.org/r/20221104121805.5264-4-adrian.hunter@intel.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
17 lines
545 B
C
17 lines
545 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef ARCH_TESTS_H
|
|
#define ARCH_TESTS_H
|
|
|
|
struct test_suite;
|
|
|
|
/* Tests */
|
|
int test__rdpmc(struct test_suite *test, int subtest);
|
|
int test__insn_x86(struct test_suite *test, int subtest);
|
|
int test__intel_pt_pkt_decoder(struct test_suite *test, int subtest);
|
|
int test__intel_pt_hybrid_compat(struct test_suite *test, int subtest);
|
|
int test__bp_modify(struct test_suite *test, int subtest);
|
|
int test__x86_sample_parsing(struct test_suite *test, int subtest);
|
|
|
|
extern struct test_suite *arch_tests[];
|
|
|
|
#endif
|