aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/net/lib/py/utils.py
diff options
context:
space:
mode:
authorSean Christopherson <[email protected]>2025-01-11 00:50:45 +0000
committerSean Christopherson <[email protected]>2025-02-14 15:02:09 +0000
commite65faf71bd54ac957aed3c2e81a964fea63f3e82 (patch)
treefc73eefd030e0bb1b9ab08651619a6f199d91064 /tools/testing/selftests/net/lib/py/utils.py
parentKVM: selftests: Macrofy vm_get_stat() to auto-generate stat name string (diff)
downloadkernel-e65faf71bd54ac957aed3c2e81a964fea63f3e82.tar.gz
kernel-e65faf71bd54ac957aed3c2e81a964fea63f3e82.zip
KVM: selftests: Add struct and helpers to wrap binary stats cache
Add a struct and helpers to manage the binary stats cache, which is currently used only for VM-scoped stats. This will allow expanding the selftests infrastructure to provide support for vCPU-scoped binary stats, which, except for the ioctl to get the stats FD are identical to VM-scoped stats. Defer converting __vm_get_stat() to a scope-agnostic helper to a future patch, as getting the stats FD from KVM needs to be moved elsewhere before it can be made completely scope-agnostic. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'tools/testing/selftests/net/lib/py/utils.py')
0 files changed, 0 insertions, 0 deletions