Page MenuHomeFreeBSD

pmcstat: set initial counter value to zero
ClosedPublic

Authored by mhorne on Apr 21 2021, 4:43 PM.
Tags
None
Referenced Files
F108523954: D29887.id87897.diff
Sat, Jan 25, 9:28 PM
F108521764: D29887.diff
Sat, Jan 25, 9:02 PM
Unknown Object (File)
Tue, Jan 14, 12:52 PM
Unknown Object (File)
Dec 5 2024, 5:35 AM
Unknown Object (File)
Nov 30 2024, 4:51 AM
Unknown Object (File)
Nov 29 2024, 4:20 PM
Unknown Object (File)
Nov 24 2024, 11:40 PM
Unknown Object (File)
Nov 24 2024, 9:00 PM
Subscribers

Details

Summary

For an infrequent event, pmcstat may report (u_long)-1 for CPUs where
the counter was never incremented. Just set this to zero, instead.

ev->ev_count is passed as the count argument to pmc_allocate(3), but
this wasn't always the case.

Diff Detail

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