summaryrefslogtreecommitdiffstats
path: root/drivers/hwtracing
diff options
context:
space:
mode:
authorEric Auger <eric.auger@redhat.com>2020-01-24 15:25:33 +0100
committerMarc Zyngier <maz@kernel.org>2020-01-28 12:50:33 +0000
commit76c9fc56ddfdfeb0c9ff984d0d63b083e608fc92 (patch)
treefcece31e3dfe0b78f9cd415ecba8279a49073817 /drivers/hwtracing
parent3837407c1aa1101ed5e214c7d6041e7a23335c6e (diff)
downloadlinux-76c9fc56ddfdfeb0c9ff984d0d63b083e608fc92.tar.bz2
KVM: arm64: pmu: Don't mark a counter as chained if the odd one is disabled
At the moment we update the chain bitmap on type setting. This does not take into account the enable state of the odd register. Let's make sure a counter is never considered as chained if the high counter is disabled. We recompute the chain state on enable/disable and type changes. Also let create_perf_event() use the chain bitmap and not use kvm_pmu_idx_has_chain_evtype(). Suggested-by: Marc Zyngier <maz@kernel.org> Signed-off-by: Eric Auger <eric.auger@redhat.com> Signed-off-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20200124142535.29386-3-eric.auger@redhat.com
Diffstat (limited to 'drivers/hwtracing')
0 files changed, 0 insertions, 0 deletions