v1 -> v2 Changelog: - Introduce __start_event() and multiple_many() for readability; (Sean) (https://lore.kernel.org/kvm/20220801131814.24364-1-likexu@xxxxxxxxxxx/) - Move PEBS testcases to this patch set for easier tracking; (https://lore.kernel.org/kvm/20220728112119.58173-1-likexu@xxxxxxxxxxx/) - Create vPMU testcase group as more related tests are coming; Like Xu (5): x86/pmu: Introduce __start_event() to drop all of the manual zeroing x86/pmu: Introduce multiple_{one, many}() to improve readability x86/pmu: Reset the expected count of the fixed counter 0 when i386 x86/pmu: Add tests for Intel Processor Event Based Sampling (PEBS) x86: create pmu group for quick pmu-scope testing lib/x86/msr.h | 1 + x86/Makefile.x86_64 | 1 + x86/pmu.c | 49 +++-- x86/pmu_pebs.c | 486 ++++++++++++++++++++++++++++++++++++++++++++ x86/unittests.cfg | 10 + 5 files changed, 527 insertions(+), 20 deletions(-) create mode 100644 x86/pmu_pebs.c -- 2.37.2