Page MenuHomeFreeBSD

libpmc: add some AMD pmu counter aliases
ClosedPublic

Authored by mhorne on Sep 27 2021, 7:48 PM.
Tags
None
Referenced Files
F170699480: D32162.id95793.diff
Sun, Sep 6, 2:24 AM
F170614871: D32162.id95856.diff
Sat, Sep 5, 3:54 PM
F170577300: D32162.id.diff
Sat, Sep 5, 11:55 AM
F170574260: D32162.id95793.diff
Sat, Sep 5, 11:36 AM
Unknown Object (File)
Fri, Sep 4, 11:58 PM
Unknown Object (File)
Fri, Sep 4, 11:31 AM
Unknown Object (File)
Thu, Sep 3, 6:49 AM
Unknown Object (File)
Thu, Sep 3, 6:49 AM
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
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 41786
Build 38675: arc lint + arc unit

Event Timeline

lib/libpmc/libpmc_pmu_util.c
98

where does this one come from?

lib/libpmc/libpmc_pmu_util.c
98

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.