This patchset adds the PMU testing case for AMD CPU. The original pmu test code is re-named to intel_pmu. And common PMU event and counter definitions are moved to pmu.h, which is shared between intel_pmu and amd_pmc. Thanks, -Wei Wei Huang (3): pmu: move common x86 PMU definitions to pmu.h pmu: Rename pmu.c code to intel_pmu.c pmu: Create AMD PMU test code x86/Makefile.common | 3 +- x86/amd_pmu.c | 265 +++++++++++++++++++++++++++++++++ x86/intel_pmu.c | 379 +++++++++++++++++++++++++++++++++++++++++++++++ x86/pmu.c | 413 ---------------------------------------------------- x86/pmu.h | 42 ++++++ x86/unittests.cfg | 8 +- 6 files changed, 694 insertions(+), 416 deletions(-) create mode 100644 x86/amd_pmu.c create mode 100644 x86/intel_pmu.c delete mode 100644 x86/pmu.c create mode 100644 x86/pmu.h -- 2.7.5