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)
Thu, Oct 1, 3:54 PM
Unknown Object (File)
Sun, Sep 27, 11:19 PM
Unknown Object (File)
Sun, Sep 27, 9:53 PM
Unknown Object (File)
Thu, Sep 24, 6:05 AM
Unknown Object (File)
Thu, Sep 24, 5:06 AM
Unknown Object (File)
Sat, Sep 12, 3:13 AM
Unknown Object (File)
Fri, Sep 11, 5:57 AM
Unknown Object (File)
Sat, Sep 5, 6:02 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
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 38756
Build 35645: arc lint + arc unit