Page MenuHomeFreeBSD

libpmc: fix the 'cycles' event alias on x86
ClosedPublic

Authored by mhorne on Sep 28 2021, 2:04 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, May 7, 6:45 PM
Unknown Object (File)
Sat, May 2, 11:48 AM
Unknown Object (File)
Apr 29 2026, 3:36 AM
Unknown Object (File)
Apr 29 2026, 3:29 AM
Unknown Object (File)
Apr 26 2026, 5:05 AM
Unknown Object (File)
Apr 26 2026, 1:56 AM
Unknown Object (File)
Apr 20 2026, 3:56 PM
Unknown Object (File)
Apr 20 2026, 6:23 AM
Subscribers

Details

Summary

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.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable