HomeFreeBSD

libpmc: fix the 'cycles' event alias on x86

Description

libpmc: fix the 'cycles' event alias on x86

Looking for "tsc-tsc" in the pmu tables will fail every time. Instead,
make this an alias for the static TSC event defined in pmc_events.h.
This fixes 'pmcstat -s cycles' on Intel and AMD.

Reviewed by: emaste
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D32197

(cherry picked from commit 937539e0a32ce1da46223664ca1cf3b252e02ece)

Details

Provenance
mhorneAuthored on Sep 30 2021, 2:11 PM
Reviewer
emaste
Differential Revision
D32197: libpmc: fix the 'cycles' event alias on x86
Parents
rGfc7febf483a4: minidump: De-duplicate the progress bar
Branches
Unknown
Tags
Unknown