aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm64/kernel/perf_event.c
diff options
context:
space:
mode:
authorAndrew Murray <andrew.murray@arm.com>2019-04-09 20:22:12 +0100
committerMarc Zyngier <marc.zyngier@arm.com>2019-04-24 15:35:30 +0100
commiteb41238cf19fda694e3a99c1f4f58bd88479a5ee (patch)
treec96096fc7b28a5d0d5969e882a9cd39d946544b1 /arch/arm64/kernel/perf_event.c
parentarm64: KVM: Encapsulate kvm_cpu_context in kvm_host_data (diff)
downloadlinux-dev-eb41238cf19fda694e3a99c1f4f58bd88479a5ee.tar.xz
linux-dev-eb41238cf19fda694e3a99c1f4f58bd88479a5ee.zip
arm64: KVM: Add accessors to track guest/host only counters
In order to effeciently switch events_{guest,host} perf counters at guest entry/exit we add bitfields to kvm_cpu_context for guest and host events as well as accessors for updating them. A function is also provided which allows the PMU driver to determine if a counter should start counting when it is enabled. With exclude_host, we may only start counting when entering the guest. Signed-off-by: Andrew Murray <andrew.murray@arm.com> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'arch/arm64/kernel/perf_event.c')
0 files changed, 0 insertions, 0 deletions