Page MenuHomeFreeBSD

pmcstat: set initial counter value to zero
ClosedPublic

Authored by mhorne on Apr 21 2021, 4:43 PM.
Tags
None
Referenced Files
F153468045: D29887.id87877.diff
Tue, Apr 21, 8:23 AM
F153467959: D29887.id87877.diff
Tue, Apr 21, 8:23 AM
Unknown Object (File)
Sun, Apr 19, 5:42 PM
Unknown Object (File)
Wed, Apr 15, 2:44 PM
Unknown Object (File)
Wed, Apr 15, 3:19 AM
Unknown Object (File)
Tue, Apr 7, 4:34 PM
Unknown Object (File)
Mon, Apr 6, 4:19 AM
Unknown Object (File)
Thu, Apr 2, 9:00 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