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)
Mon, Jun 16, 6:17 AM
Unknown Object (File)
Mon, Jun 2, 12:19 AM
Unknown Object (File)
Sun, Jun 1, 1:11 PM
Unknown Object (File)
Sat, May 31, 2:21 AM
Unknown Object (File)
Apr 21 2025, 9:21 PM
Unknown Object (File)
Apr 21 2025, 9:09 PM
Unknown Object (File)
Apr 21 2025, 8:55 PM
Unknown Object (File)
Apr 21 2025, 8:32 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