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, Jul 4, 6:22 PM
Unknown Object (File)
Fri, Jul 3, 1:02 PM
Unknown Object (File)
Thu, Jul 2, 5:06 PM
Unknown Object (File)
Wed, Jul 1, 1:38 AM
Unknown Object (File)
Tue, Jun 23, 10:54 PM
Unknown Object (File)
Jun 10 2026, 1:25 PM
Unknown Object (File)
Jun 8 2026, 5:21 PM
Unknown Object (File)
Jun 4 2026, 12:18 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