Skip to content
Commit 4070b9c6 authored by Like Xu's avatar Like Xu Committed by Sean Christopherson
Browse files

x86/pmu: Fix printed messages for emulated instruction test



This test case uses MSR_IA32_PERFCTR0 to count branch instructions
and PERFCTR1 to count instruction events. The same correspondence
should be maintained at report(), specifically this should use
status bit 1 for instructions and bit 0 for branches.

Fixes: 20cf9147 ("x86/pmu: Test PMU virtualization on emulated instructions")
Reported-by: default avatarSandipan Das <sandipan.das@amd.com>
Signed-off-by: default avatarLike Xu <likexu@tencent.com>
Signed-off-by: default avatarSean Christopherson <seanjc@google.com>
Link: https://lore.kernel.org/r/20221102225110.3023543-6-seanjc@google.com
parent 96e8e64c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment