diff options
author | 2025-01-10 16:50:44 -0800 | |
---|---|---|
committer | 2025-02-14 07:01:55 -0800 | |
commit | b0c3f5df92913de6b9936cb0707cf1c8cdad66a2 (patch) | |
tree | 54a583c74fd06f674dcc988769c111dd22af94a7 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | KVM: selftests: Assert that __vm_get_stat() actually finds a stat (diff) | |
download | wireguard-linux-b0c3f5df92913de6b9936cb0707cf1c8cdad66a2.tar.xz wireguard-linux-b0c3f5df92913de6b9936cb0707cf1c8cdad66a2.zip |
KVM: selftests: Macrofy vm_get_stat() to auto-generate stat name string
Turn vm_get_stat() into a macro that generates a string for the stat name,
as opposed to taking a string. This will allow hardening stat usage in
the future to generate errors on unknown stats at compile time.
No functional change intended.
Link: https://lore.kernel.org/r/20250111005049.1247555-5-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