OSDN Git Service

perf/x86/intel/pt: Export pt_cap_get()
authorChao Peng <chao.p.peng@linux.intel.com>
Wed, 24 Oct 2018 08:05:06 +0000 (16:05 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 21 Dec 2018 10:28:32 +0000 (11:28 +0100)
commitf6d079ce867d679e4dffef5b3112c7634215fd88
treebca88605d39dfab913f1e41dfa10b0fd826b2709
parent887eda13b570f62a8b7d3eadc91734e44d95e636
perf/x86/intel/pt: Export pt_cap_get()

pt_cap_get() is required by the upcoming PT support in KVM guests.

Export it and move the capabilites enum to a global header.

As a global functions, "pt_*" is already used for ptrace and
other things, so it makes sense to use "intel_pt_*" as a prefix.

Acked-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Chao Peng <chao.p.peng@linux.intel.com>
Signed-off-by: Luwei Kang <luwei.kang@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/events/intel/pt.c
arch/x86/events/intel/pt.h
arch/x86/include/asm/intel_pt.h