This change adds support for POWER8/9 performance counters.
Right, yes, this helps a lot.
But taking a look on how these get hooked up on i386/amd64, it seems there is a reasonable amount of work to do:
- libpmc_pmu_util.c needs to be ported to PPC64.
- In hwpmc module, PPC64 allocate/release pmc methods need to be adapted to support PMC allocation with settings coming from libpmc. Also, register programming is a bit different for these events, compared to the basic ones of ISA 2.07.
- Probably something else I'm missing.
So, it doesn't seem a whole lot of work, but I think it's enough to justify doing it a separate patch later.
Rename ppcpnv/powernv to power8.
The PowerNV naming could cause confusion, as these changes work with pseries/QEMU too.
POWER8 describes more correctly the support target being added, and POWER9 is fully backwards compatible with it.