aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorVitaly Kuznetsov <[email protected]>2021-09-03 09:51:37 +0200
committerPaolo Bonzini <[email protected]>2021-09-30 04:27:03 -0400
commitae0946cd3601752dc58f86d84258e5361e9c8cd4 (patch)
tree8eef0efc9dc2d5eee6069f3a00a32387557fc875 /tools/perf/scripts/python/event_analyzing_sample.py
parent6470accc7ba948b0b3aca22b273fe84ec638a116 (diff)
KVM: Optimize kvm_make_vcpus_request_mask() a bit
Iterating over set bits in 'vcpu_bitmap' should be faster than going through all vCPUs, especially when just a few bits are set. Drop kvm_make_vcpus_request_mask() call from kvm_make_all_cpus_request_except() to avoid handling the special case when 'vcpu_bitmap' is NULL, move the code to kvm_make_all_cpus_request_except() itself. Signed-off-by: Vitaly Kuznetsov <[email protected]> Reviewed-by: Sean Christopherson <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]> Message-Id: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions