]> git.baikalelectronics.ru Git - kernel.git/commit
x86/perf/core: Add pebs_capable to store valid PEBS_COUNTER_MASK value
authorPeter Zijlstra (Intel) <peterz@infradead.org>
Mon, 11 Apr 2022 10:19:35 +0000 (18:19 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 8 Jun 2022 08:47:52 +0000 (04:47 -0400)
commitd9b84bd96a6c074f6b054a67f4c4ea3154023e32
treec0acd31e754300bcc0a7813a45c497ac1b096e68
parent4220318892bcdcf0188edc59e4acb21176469c3f
x86/perf/core: Add pebs_capable to store valid PEBS_COUNTER_MASK value

The value of pebs_counter_mask will be accessed frequently
for repeated use in the intel_guest_get_msrs(). So it can be
optimized instead of endlessly mucking about with branches.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Message-Id: <20220411101946.20262-7-likexu@tencent.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/events/intel/core.c
arch/x86/events/perf_event.h