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)
Mon, Feb 17, 1:16 PM
Unknown Object (File)
Wed, Feb 5, 6:25 PM
Unknown Object (File)
Mon, Feb 3, 4:58 AM
Unknown Object (File)
Jan 18 2025, 6:57 PM
Unknown Object (File)
Jan 17 2025, 8:02 PM
Unknown Object (File)
Jan 16 2025, 5:06 PM
Unknown Object (File)
Jan 16 2025, 2:45 AM
Unknown Object (File)
Dec 18 2024, 10:29 PM
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.