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

Details

Provenance
mhorneAuthored on Sep 30 2021, 2:11 PM
Reviewer
emaste
Differential Revision
D32197: libpmc: fix the 'cycles' event alias on x86
Parents
rG69ab52838655: linprocfs: find cwd and root handling
Branches
Unknown
Tags
Unknown