OSDN Git Service

perf intel-pt: Add hybrid CPU compatibility test
authorAdrian Hunter <adrian.hunter@intel.com>
Fri, 4 Nov 2022 12:18:05 +0000 (14:18 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 9 Nov 2022 18:23:12 +0000 (15:23 -0300)
commit44a037f54b97e4215a282d39d0f7f28c588f185c
treec2ef998f8fb96fd42fadc492721f608c317872c0
parent828143f8da2856014df3102f63f7e4e4dc2d1c22
perf intel-pt: Add hybrid CPU compatibility test

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>
tools/perf/arch/x86/include/arch-tests.h
tools/perf/arch/x86/tests/arch-tests.c
tools/perf/arch/x86/tests/intel-pt-test.c