]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
hwpmc: remove unused pre-table driven bits for intel
authorMatt Macy <mmacy@FreeBSD.org>
Thu, 31 May 2018 22:41:07 +0000 (22:41 +0000)
committerMatt Macy <mmacy@FreeBSD.org>
Thu, 31 May 2018 22:41:07 +0000 (22:41 +0000)
commite92a1350b50edf504316434144bea3566cf8badc
tree74712cb7ca24c9a6f5cf6d5f2305483d8964314a
parent7d1c2b74a03e621f235e2cf282bf724259f364c5
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.
17 files changed:
lib/libpmc/libpmc.c
sys/amd64/include/pmc_mdep.h
sys/conf/files.amd64
sys/conf/files.i386
sys/dev/hwpmc/hwpmc_core.c
sys/dev/hwpmc/hwpmc_intel.c
sys/dev/hwpmc/hwpmc_pentium.c [deleted file]
sys/dev/hwpmc/hwpmc_pentium.h [deleted file]
sys/dev/hwpmc/hwpmc_piv.c [deleted file]
sys/dev/hwpmc/hwpmc_piv.h [deleted file]
sys/dev/hwpmc/hwpmc_ppro.c [deleted file]
sys/dev/hwpmc/hwpmc_ppro.h [deleted file]
sys/dev/hwpmc/hwpmc_uncore.c
sys/dev/hwpmc/hwpmc_uncore.h
sys/dev/hwpmc/pmc_events.h
sys/i386/include/pmc_mdep.h
sys/modules/hwpmc/Makefile