HomeFreeBSD

hwpmc: remove unused pre-table driven bits for intel

Description

hwpmc: remove unused pre-table driven bits for intel

Intel now provides comprehensive tables for all performance counters
and the various valid configuration permutations as text .json files.
Libpmc has been converted to use these and hwpmc_core has been greatly
simplified by moving to passthrough of the table values.

The one gotcha is that said tables don't support pentium pro and and pentium
IV. There's very few users of hwpmc on _amd64_ kernels on new hardware. It is
unlikely that anyone is doing low level optimization on 15 year old Intel
hardware. Nonetheless, if someone feels strongly enough to populate the
corresponding tables for p4 and ppro I will reinstate the files in to the
build.

Code for the K8 counters and !x86 architectures remains unchanged.

Details

Provenance
mmacyAuthored on May 31 2018, 10:41 PM
Parents
rG7d1c2b74a03e: libpmc/pmu: enable for i386 as well
Branches
Unknown
Tags
Unknown