Page MenuHomeFreeBSD

pmcstat: set initial counter value to zero
ClosedPublic

Authored by mhorne on Apr 21 2021, 4:43 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Nov 9, 5:34 AM
Unknown Object (File)
Tue, Nov 4, 12:58 PM
Unknown Object (File)
Tue, Nov 4, 12:52 PM
Unknown Object (File)
Tue, Nov 4, 12:51 PM
Unknown Object (File)
Tue, Nov 4, 12:47 PM
Unknown Object (File)
Sat, Oct 25, 9:33 PM
Unknown Object (File)
Sat, Oct 25, 1:18 AM
Unknown Object (File)
Thu, Oct 23, 10:36 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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable