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
F166451983: D32197.diff
Thu, Aug 13, 4:03 PM
Unknown Object (File)
Sat, Aug 8, 3:04 PM
Unknown Object (File)
Sat, Aug 8, 10:23 AM
Unknown Object (File)
Sun, Jul 26, 3:45 PM
Unknown Object (File)
Jul 12 2026, 8:10 PM
Unknown Object (File)
Jul 8 2026, 6:55 AM
Unknown Object (File)
Jul 3 2026, 4:13 AM
Unknown Object (File)
Jul 3 2026, 4:05 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