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 10, 11:27 AM
Unknown Object (File)
Sun, Nov 10, 11:26 AM
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
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
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 41811
Build 38700: arc lint + arc unit