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, May 4, 12:02 AM
Unknown Object (File)
Fri, May 3, 5:24 PM
Unknown Object (File)
Wed, May 1, 12:11 PM
Unknown Object (File)
Sun, Apr 21, 8:47 PM
Unknown Object (File)
Apr 6 2024, 2:30 PM
Unknown Object (File)
Mar 26 2024, 7:35 AM
Unknown Object (File)
Mar 12 2024, 8:44 AM
Unknown Object (File)
Mar 12 2024, 8:44 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