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)
Sat, Jan 10, 3:52 PM
Unknown Object (File)
Sat, Jan 10, 3:15 PM
Unknown Object (File)
Sat, Jan 10, 3:09 PM
Unknown Object (File)
Sat, Jan 10, 5:01 AM
Unknown Object (File)
Fri, Jan 9, 7:28 PM
Unknown Object (File)
Tue, Dec 23, 8:21 AM
Unknown Object (File)
Dec 16 2025, 6:26 AM
Unknown Object (File)
Dec 11 2025, 4:43 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