Page MenuHomeFreeBSD

pmcstat: set initial counter value to zero
ClosedPublic

Authored by mhorne on Apr 21 2021, 4:43 PM.
Tags
None
Referenced Files
F156621158: D29887.id87877.diff
Fri, May 15, 4:31 AM
F156596720: D29887.id.diff
Thu, May 14, 11:43 PM
Unknown Object (File)
Thu, May 14, 5:06 PM
Unknown Object (File)
Thu, May 14, 5:06 PM
Unknown Object (File)
Tue, May 12, 3:46 PM
Unknown Object (File)
Mon, May 11, 9:54 PM
Unknown Object (File)
Mon, May 11, 9:18 PM
Unknown Object (File)
Mon, May 4, 10:54 AM
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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable