diff options
author | Andrew Murray <andrew.murray@arm.com> | 2019-06-17 20:01:03 +0100 |
---|---|---|
committer | Marc Zyngier <marc.zyngier@arm.com> | 2019-07-05 13:56:14 +0100 |
commit | 30d97754b2d1bc4fd20f27c25fed92fc7ce39ce3 (patch) | |
tree | ea0c47cbc46a38bef2edd0373e56d675be9acd5d /kernel/bpf/btf.c | |
parent | 6f4d2a0b0b1e9a1f7594e666eebad98372901818 (diff) | |
download | linux-stable-30d97754b2d1bc4fd20f27c25fed92fc7ce39ce3.tar.gz linux-stable-30d97754b2d1bc4fd20f27c25fed92fc7ce39ce3.tar.bz2 linux-stable-30d97754b2d1bc4fd20f27c25fed92fc7ce39ce3.zip |
KVM: arm/arm64: Re-create event when setting counter value
The perf event sample_period is currently set based upon the current
counter value, when PMXEVTYPER is written to and the perf event is created.
However the user may choose to write the type before the counter value in
which case sample_period will be set incorrectly. Let's instead decouple
event creation from PMXEVTYPER and (re)create the event in either
suitation.
Signed-off-by: Andrew Murray <andrew.murray@arm.com>
Reviewed-by: Julien Thierry <julien.thierry@arm.com>
Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'kernel/bpf/btf.c')
0 files changed, 0 insertions, 0 deletions