Skip to content

Fixup and cleanup to pmu test applications

Yang Weijiang kvm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4x86: Use report_skip to print messages when tests are skippedx86/vmx_tests.c+44 -440 replies
2/4x86: Use helpers to fetch supported perf capabilitieslib/x86/processor.h x86/pmu.c+67 -152 replies
3/4x86: Skip perf related tests when platform cannot supportlib/x86/processor.h x86/vmx_tests.c+28 -80 replies
4/4x86: Check platform pmu capabilities before run lbr testslib/x86/processor.h x86/pmu_lbr.c+14 -200 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [kvm-unit-tests PATCH 0/4] Fixup and cleanup to pmu test applications

I Found a few pmu test failures when ran againt KVM/queue branch with pmu disabled(enable_pmu=0), and posted a few fixup patches for the issues. Maintainers reviewed and commented actively, which makes the fixup patches evolved into this series. Besides two fixup patches, there're another two cleanup patches included.

patch 1: Cleanup patch. Use report_skip() instead of printf() to make output logs clean.
patch 2: Cleanup patch. Add helpers to check platform supported pmu capabilities.
patch 3~4: Fixup patches. Fix test failures seen when pmu_enable=0.

Yang Weijiang (4):
x86: Use report_skip to print messages when tests are skipped
x86: Use helpers to fetch supported perf capabilities
x86: Skip perf related tests when platform cannot support
x86: Check platform pmu capabilities before run lbr tests

 lib/x86/processor.h |  70 ++++++++++++++++++++++++++++
 x86/pmu.c           |  28 ++++++------
 x86/pmu_lbr.c       |  33 ++++++--------
 x86/vmx_tests.c     | 109 +++++++++++++++++++++++---------------------
 4 files changed, 153 insertions(+), 87 deletions(-)

base-commit: ca85dda2671e88d34acfbca6de48a9ab32b1810d

Signature · 1 line
2.31.1