diff options
author | Shannon Zhao <shannon.zhao@linaro.org> | 2015-10-28 07:10:30 +0300 |
---|---|---|
committer | Marc Zyngier <marc.zyngier@arm.com> | 2016-02-29 21:34:21 +0300 |
commit | 76993739cd6f5b42e881fe3332b9f8eb98cd6907 (patch) | |
tree | c2a3e47cacfff585748d69b685c6c8a2e5a390e4 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 7a0adc7064b88609e2917446af8789fac1d4fdd1 (diff) | |
download | linux-76993739cd6f5b42e881fe3332b9f8eb98cd6907.tar.xz |
arm64: KVM: Add helper to handle PMCR register bits
According to ARMv8 spec, when writing 1 to PMCR.E, all counters are
enabled by PMCNTENSET, while writing 0 to PMCR.E, all counters are
disabled. When writing 1 to PMCR.P, reset all event counters, not
including PMCCNTR, to zero. When writing 1 to PMCR.C, reset PMCCNTR to
zero.
Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org>
Reviewed-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions