Page MenuHomeFreeBSD

libpmc: add some AMD pmu counter aliases
ClosedPublic

Authored by mhorne on Sep 27 2021, 7:48 PM.
Tags
None
Referenced Files
F148630971: D32162.id95856.diff
Thu, Mar 19, 6:18 AM
F148577521: D32162.id.diff
Wed, Mar 18, 9:52 PM
Unknown Object (File)
Sun, Mar 15, 7:24 AM
Unknown Object (File)
Sun, Mar 15, 1:58 AM
Unknown Object (File)
Sun, Mar 15, 12:55 AM
Unknown Object (File)
Mon, Mar 9, 10:03 PM
Unknown Object (File)
Mon, Mar 9, 11:42 AM
Unknown Object (File)
Sun, Mar 8, 11:33 PM
Subscribers

Details

Summary

Make it mostly compatible with what's defined for Intel. Except where
noted, these are defined for all of amdzen(1|2|3).

Diff Detail

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

Event Timeline

lib/libpmc/libpmc_pmu_util.c
97

where does this one come from?

lib/libpmc/libpmc_pmu_util.c
97

It is meant to invoke the pmc.tsc(3) class, which has exactly one event that reads the TSC. I copied it from the Intel aliases above, but looking at it now, this doesn't actually work...

I will move this alias out of this file to a more appropriate place.

Drop non-functional 'cycles' alias in favor of D32197.

This revision is now accepted and ready to land.Sep 28 2021, 3:07 PM
This revision was automatically updated to reflect the committed changes.