Page MenuHomeFreeBSD

init_main: Use TUNABLE_INT_FETCH to initialize verbose_sysinit
ClosedPublic

Authored by zlei on Dec 4 2024, 12:22 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Sep 20, 10:13 PM
Unknown Object (File)
Tue, Sep 16, 3:08 AM
Unknown Object (File)
Sep 11 2025, 5:22 PM
Unknown Object (File)
Sep 11 2025, 3:16 AM
Unknown Object (File)
Sep 10 2025, 1:41 PM
Unknown Object (File)
Sep 9 2025, 7:23 PM
Unknown Object (File)
Sep 9 2025, 4:22 PM
Unknown Object (File)
Sep 4 2025, 4:27 PM
Subscribers

Details

Summary

It is too late to initialize verbose_sysinit via TUNABLE_INT, as
TUNABLE_INT run at the order of SI_SUB_TUNABLES, thus any subsystems
those have order prior or equal to SI_SUB_TUNABLES are not logged.

MFC after: 1 week

Test Plan

Boot with debug.verbose_sysinit enabled.

# dmesg
---<<BOOT>>---
subsystem 6fffff
   madt_register(0)... done.
   apic_init(0)... done.
subsystem 700000
   mp_setmaxid(0)... done.
   tunable_int_init(&__tunable_int_102)... done.
   tunable_int_init(&__tunable_int_104)... done.
   tunable_int_init(&__tunable_int_106)... done.
   tunable_int_init(&__tunable_int_197)... done.
...

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

zlei requested review of this revision.Dec 4 2024, 12:22 PM
This revision is now accepted and ready to land.Dec 4 2024, 3:28 PM