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)
Sun, Nov 3, 4:29 AM
Unknown Object (File)
Oct 1 2024, 4:20 AM
Unknown Object (File)
Sep 23 2024, 12:01 AM
Unknown Object (File)
Sep 19 2024, 12:38 AM
Unknown Object (File)
Sep 18 2024, 7:29 PM
Unknown Object (File)
Sep 18 2024, 1:41 PM
Unknown Object (File)
Sep 18 2024, 11:04 AM
Unknown Object (File)
Sep 18 2024, 8:36 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