Page MenuHomeFreeBSD

libpmc: eliminate pmc_pmu_stat_mode()
ClosedPublic

Authored by mhorne on May 28 2021, 6:10 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jun 11, 8:50 AM
Unknown Object (File)
Fri, Jun 7, 4:32 PM
Unknown Object (File)
May 14 2024, 5:49 PM
Unknown Object (File)
May 9 2024, 10:07 PM
Unknown Object (File)
Apr 21 2024, 9:06 PM
Unknown Object (File)
Apr 12 2024, 4:30 AM
Unknown Object (File)
Jan 17 2024, 10:48 AM
Unknown Object (File)
Dec 23 2023, 11:46 AM
Subscribers

Details

Summary

There is a single consumer, the pmc utility, that clearly has knowledge
of which counters it is expecting. Remove this function and have it
use common counter aliases instead.

No functional change intended.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 39543
Build 36432: arc lint + arc unit

Event Timeline

mhorne added inline comments.
usr.sbin/pmc/cmd_pmc_stat.c
114

Since it is not obvious from the diff, these aliases refer to the same counters as the names being removed above (on intel at least). Therefore, later calls to pmc_allocate() in this file will behave the same.

This revision is now accepted and ready to land.May 28 2021, 7:09 PM
This revision was automatically updated to reflect the committed changes.