diff options
author | 2022-09-22 13:40:38 -0700 | |
---|---|---|
committer | 2022-09-28 12:47:21 -0700 | |
commit | c0245b774203f7341ddb1cce29a6ee607857f325 (patch) | |
tree | abd81812394e926801334dd89c2d6302d27b6865 /scripts/generate_rust_analyzer.py | |
parent | KVM: x86/pmu: Don't generate PEBS records for emulated instructions (diff) | |
download | wireguard-linux-c0245b774203f7341ddb1cce29a6ee607857f325.tar.xz wireguard-linux-c0245b774203f7341ddb1cce29a6ee607857f325.zip |
KVM: x86/pmu: Refactor PERF_GLOBAL_CTRL update helper for reuse by PEBS
Extract the "global ctrl" specific bits out of global_ctrl_changed() so
that the helper only deals with reprogramming general purpose counters,
and rename the helper accordingly. PEBS needs the same logic, i.e needs
to reprogram counters associated when PEBS_ENABLE bits are toggled, and
will use the helper in a future fix.
No functional change intended.
Signed-off-by: Like Xu <likexu@tencent.com>
Link: https://lore.kernel.org/r/20220831085328.45489-4-likexu@tencent.com
[sean: split to separate patch, write changelog]
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions