Andrew Murray d1947bc4bc arm64: arm_pmu: Add !VHE support for exclude_host/exclude_guest attributes
Add support for the :G and :H attributes in perf by handling the
exclude_host/exclude_guest event attributes.

We notify KVM of counters that we wish to be enabled or disabled on
guest entry/exit and thus defer from starting or stopping events based
on their event attributes.

With !VHE we switch the counters between host/guest at EL2. We are able
to eliminate counters counting host events on the boundaries of guest
entry/exit when using :G by filtering out EL2 for exclude_host. When
using !exclude_hv there is a small blackout window at the guest
entry/exit where host events are not captured.

Signed-off-by: Andrew Murray <andrew.murray@arm.com>
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
2019-04-24 15:35:58 +01:00
..
2018-07-18 01:18:05 +09:00
2018-10-31 08:54:16 -07:00
2018-11-02 17:24:17 +00:00
2019-02-26 16:57:59 +00:00
2019-04-18 17:14:01 +01:00
2018-12-31 11:46:59 -08:00
2019-02-06 10:05:18 +00:00
2019-03-10 10:17:23 -07:00
2018-07-12 14:49:48 +01:00
2019-01-05 11:28:39 -08:00
2018-07-12 14:49:48 +01:00
2019-02-06 10:05:22 +00:00
2017-08-09 12:16:28 +01:00