diff options
author | 2025-01-10 16:50:46 -0800 | |
---|---|---|
committer | 2025-02-14 07:02:11 -0800 | |
commit | ea7179f99514f8119c6327d7c3b84a439a273533 (patch) | |
tree | 593760c8a17f8bcd3f25667045f11b7d919d0291 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | KVM: selftests: Add struct and helpers to wrap binary stats cache (diff) | |
download | wireguard-linux-ea7179f99514f8119c6327d7c3b84a439a273533.tar.xz wireguard-linux-ea7179f99514f8119c6327d7c3b84a439a273533.zip |
KVM: selftests: Get VM's binary stats FD when opening VM
Get and cache a VM's binary stats FD when the VM is opened, as opposed to
waiting until the stats are first used. Opening the stats FD outside of
__vm_get_stat() will allow converting it to a scope-agnostic helper.
Note, this doesn't interfere with kvm_binary_stats_test's testcase that
verifies a stats FD can be used after its own VM's FD is closed, as the
cached FD is also closed during kvm_vm_free().
Link: https://lore.kernel.org/r/20250111005049.1247555-7-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions