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)
Sat, Jan 18, 6:57 PM
Unknown Object (File)
Fri, Jan 17, 8:02 PM
Unknown Object (File)
Thu, Jan 16, 5:06 PM
Unknown Object (File)
Thu, Jan 16, 2:45 AM
Unknown Object (File)
Dec 18 2024, 10:29 PM
Unknown Object (File)
Nov 27 2024, 3:23 PM
Unknown Object (File)
Nov 15 2024, 9:52 AM
Unknown Object (File)
Nov 15 2024, 9:39 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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.