diff options
| author | 2019-04-09 20:22:12 +0100 | |
|---|---|---|
| committer | 2019-04-24 15:35:30 +0100 | |
| commit | eb41238cf19fda694e3a99c1f4f58bd88479a5ee (patch) | |
| tree | c96096fc7b28a5d0d5969e882a9cd39d946544b1 /tools/perf/scripts/python/stackcollapse.py | |
| parent | arm64: KVM: Encapsulate kvm_cpu_context in kvm_host_data (diff) | |
| download | wireguard-linux-eb41238cf19fda694e3a99c1f4f58bd88479a5ee.tar.xz wireguard-linux-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 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
