]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
hwpmc: remove unused pre-table driven bits for intel
authormmacy <mmacy@FreeBSD.org>
Thu, 31 May 2018 22:41:07 +0000 (22:41 +0000)
committermmacy <mmacy@FreeBSD.org>
Thu, 31 May 2018 22:41:07 +0000 (22:41 +0000)
commit2f6bd2cd39953849ef5abf9d2a9ab914c2b083f8
tree74712cb7ca24c9a6f5cf6d5f2305483d8964314a
parent2e3cf1ec9a09cd21b064fc39ff8b3b566545ba1d
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