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)
Sep 11 2025, 8:38 PM
Unknown Object (File)
Aug 30 2025, 2:27 AM
Unknown Object (File)
Aug 18 2025, 8:46 AM
Unknown Object (File)
Jul 20 2025, 11:26 PM
Unknown Object (File)
Jun 30 2025, 4:32 PM
Unknown Object (File)
Jun 30 2025, 11:37 AM
Unknown Object (File)
Jun 29 2025, 2:12 PM
Unknown Object (File)
Jun 27 2025, 3:23 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