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)
Sun, Apr 21, 9:06 PM
Unknown Object (File)
Fri, Apr 12, 4:30 AM
Unknown Object (File)
Jan 17 2024, 10:48 AM
Unknown Object (File)
Dec 23 2023, 11:46 AM
Unknown Object (File)
Dec 14 2023, 10:31 PM
Unknown Object (File)
Nov 18 2023, 11:23 PM
Unknown Object (File)
Nov 15 2023, 5:44 PM
Unknown Object (File)
Nov 14 2023, 8:26 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
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.