summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2024-07-12 01:27:53 +0300
committerPaolo Bonzini <pbonzini@redhat.com>2024-07-26 21:46:14 +0300
commite300614f10bd2f33252c8ba40b34d6c3fbf95d72 (patch)
tree3a16617ce6e3b1fbe135fe7bfa4b5cbebd849468 /tools/perf/scripts/python/export-to-postgresql.py
parentde80252414f32db31eaa14baef511e9bd96021cd (diff)
downloadlinux-e300614f10bd2f33252c8ba40b34d6c3fbf95d72.tar.xz
KVM: cleanup and add shortcuts to kvm_range_has_memory_attributes()
Use a guard to simplify early returns, and add two more easy shortcuts. If the requested attributes are invalid, the attributes xarray will never show them as set. And if testing a single page, kvm_get_memory_attributes() is more efficient. Reviewed-by: Michael Roth <michael.roth@amd.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions