aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/kvm/dirty_log_test.c
diff options
context:
space:
mode:
authorSean Christopherson <seanjc@google.com>2022-02-15 10:15:00 -0800
committerPaolo Bonzini <pbonzini@redhat.com>2022-06-11 10:15:04 -0400
commit02e04c15caeeb64a45d350a8fdeb32620b64a02d (patch)
tree4291b1300469d75f1ac749afa7a0818e938fed9d /tools/testing/selftests/kvm/dirty_log_test.c
parentKVM: selftests: Add another underscore to inner ioctl() helpers (diff)
downloadlinux-dev-02e04c15caeeb64a45d350a8fdeb32620b64a02d.tar.xz
linux-dev-02e04c15caeeb64a45d350a8fdeb32620b64a02d.zip
KVM: selftests: Make vcpu_ioctl() a wrapper to pretty print ioctl name
Make vcpu_ioctl() a macro wrapper and pretty the _name_ of the ioctl on failure instead of the number. Add inner macros to allow handling cases where the name of the ioctl needs to be resolved higher up the stack, and to allow using the formatting for non-ioctl syscalls without being technically wrong. Deliberately do not use __stringify(), as that will expand the ioctl all the way down to its numerical sequence, again the intent is to print the name of the macro. Signed-off-by: Sean Christopherson <seanjc@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/testing/selftests/kvm/dirty_log_test.c')
0 files changed, 0 insertions, 0 deletions