]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: selftests: Print a more helpful message for EACCESS in access tracking test
authorSean Christopherson <seanjc@google.com>
Fri, 16 May 2025 21:59:09 +0000 (14:59 -0700)
committerSean Christopherson <seanjc@google.com>
Fri, 20 Jun 2025 20:39:11 +0000 (13:39 -0700)
commit71443210e26de3b35aea8dced894ad3c420d55d5
treeb4c9d565e7c3dcaa7590c8bf48b95730c77a5229
parentba300a728f6f764828d735f01f314900fb6a8315
KVM: selftests: Print a more helpful message for EACCESS in access tracking test

Use open_path_or_exit() helper to probe /sys/kernel/mm/page_idle/bitmap in
the access tracking perf test so that a helpful/pertinent SKIP message is
printed if the file exists but is inaccessible, e.g. because the file has
the kernel's default 0600 permissions.

Cc: James Houghton <jthoughton@google.com>
Link: https://lore.kernel.org/r/20250516215909.2551628-5-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
tools/testing/selftests/kvm/access_tracking_perf_test.c