]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
hwpmc: remove remaining UCP event definitions
authorMitchell Horne <mhorne@FreeBSD.org>
Fri, 5 May 2023 21:56:34 +0000 (18:56 -0300)
committerMitchell Horne <mhorne@FreeBSD.org>
Fri, 9 Jun 2023 18:14:58 +0000 (15:14 -0300)
commit0ebcec2b02e649e7f5a4eaba28eba6962e902272
tree3535d849a75bc5a8326208ca36e9985d64cebdd5
parent36d68e55b2f79983ebdc38fdb8445fa43887cb1f
hwpmc: remove remaining UCP event definitions

Although this block has remained in __PMC_EVENTS(), there is no handling
of UCP in libpmc/libpmc.c, so it is not possible to select one of these
events. It should therefore be impossible to trigger the code removed
from ucp_start_pmc(). Note that the GQ_SNOOP_MSF MSR exists only for
Nehalem and Westmere architectures, and the related events do not exist
for later generations.

The Uncore support in hwpmc has severely atrophied in general. We have
uncore event definitions in pmu-events, but the kernel support was
written against Intel Performance Measurement Architecture version 2,
and is disabled for processor generations later than Westmere. Nehalem
and Westmere lack uncore event definitions in pmu-events. I'd be
surprised if Uncore support is usable on any machine in its current
state.

Reviewed by: jkoshy
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D39901

(cherry picked from commit d71a439020721a9abea5c353b9e03b5dc29d253e)
sys/dev/hwpmc/hwpmc_uncore.c
sys/dev/hwpmc/pmc_events.h