KVM: selftests: Print detailed info in PMU event filter asserts
authorAaron Lewis <aaronlewis@google.com>
Fri, 7 Apr 2023 23:32:51 +0000 (16:32 -0700)
committerSean Christopherson <seanjc@google.com>
Fri, 14 Apr 2023 20:20:53 +0000 (13:20 -0700)
commitc140e93a0c11ac5a56834ac11ddb0f777307b2c1
treeae8a5b1b704b3fe29659aca5ec83ae34ede45ee5
parentfa32233d51b9d26369b8371e986c1030c4201fae
KVM: selftests: Print detailed info in PMU event filter asserts

Provide the actual vs. expected count in the PMU event filter test's
asserts instead of relying on pr_info() to provide the context, e.g. so
that all information needed to triage a failure is readily available even
if the environment in which the test is run captures only the assert
itself.

Signed-off-by: Aaron Lewis <aaronlewis@google.com>
[sean: rewrite changelog]
Link: https://lore.kernel.org/r/20230407233254.957013-4-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
tools/testing/selftests/kvm/x86_64/pmu_event_filter_test.c