Page MenuHomeFreeBSD

pmcstat: set initial counter value to zero
ClosedPublic

Authored by mhorne on Apr 21 2021, 4:43 PM.
Tags
None
Referenced Files
F161155369: D29887.diff
Wed, Jul 1, 1:38 AM
Unknown Object (File)
Tue, Jun 23, 10:54 PM
Unknown Object (File)
Wed, Jun 10, 1:25 PM
Unknown Object (File)
Mon, Jun 8, 5:21 PM
Unknown Object (File)
Thu, Jun 4, 12:18 AM
Unknown Object (File)
Wed, Jun 3, 6:20 PM
Unknown Object (File)
Wed, Jun 3, 5:23 PM
Unknown Object (File)
May 31 2026, 4:16 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
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 38756
Build 35645: arc lint + arc unit