Page MenuHomeFreeBSD

Use COUNTER_U64_SYSINIT() in a few places where it simplifies things.
ClosedPublic

Authored by markj on Mar 5 2020, 7:11 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Apr 20, 6:35 PM
Unknown Object (File)
Wed, Apr 15, 2:06 AM
Unknown Object (File)
Thu, Apr 9, 7:22 PM
Unknown Object (File)
Tue, Apr 7, 1:49 PM
Unknown Object (File)
Tue, Apr 7, 4:48 AM
Unknown Object (File)
Sat, Apr 4, 3:56 PM
Unknown Object (File)
Mar 24 2026, 4:34 PM
Unknown Object (File)
Mar 23 2026, 10:33 PM
Subscribers

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 29815
Build 27643: arc lint + arc unit

Event Timeline

sys/vm/vm_object.c
169

This sequence of declaration/EARLY_COUNTER initialization and SYSINIT repeats very often in your patch. Would it make sense to add e.g. COUNTER_U64_SYSINIT_EARLY that would do everything?

sys/vm/vm_object.c
169

That makes sense. Maybe COUNTER_U64_DEFINE_EARLY?

sys/vm/vm_object.c
169

Sure.

Use COUNTER_U64_DEFINE_EARLY.

This revision is now accepted and ready to land.Mar 6 2020, 4:22 PM