Page MenuHomeFreeBSD

boottrace: trace annotations for startup and shutdown
Needs ReviewPublic

Authored by mhorne on May 10 2021, 3:14 PM.
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary

Add trace events for execution of SYSINITs (both static and dynamically
loaded), and to the various steps in the shutdown/panic/reboot paths.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint OK
Unit
No Unit Test Coverage
Build Status
Buildable 39098
Build 35987: arc lint + arc unit

Event Timeline

My experience from TSLOG is that a very large proportion of the kernel boot time is spent in a single SYSINIT, namely the one during which all the devices are probed and attached. Maybe worth following TSLOG's example and adding that level of granularity? I found that it helped a lot with tracking down slow device drivers.

Also, a more general comment on this work -- can you make sure there's an easy way to record the userland init but *not* the kernel init? I'd like to be able to take this and splice it onto my loader+kernel TSLOG output.