tosc-rs / mnemos

An Operating System for Building Small Computers
https://mnemos.dev
Apache License 2.0
234 stars 14 forks source link

a bunch of tracing improvements #288

Closed hawkw closed 10 months ago

hawkw commented 10 months ago

This branch makes some improvements to our current tracing diagnostics. In particular, I wanted to improve our ability to trace early kernel initialization. I've changed the kernel to initialize the tracing subscriber much earlier, without waiting for the Serial Mux service to actually start. This way, traces we emit before sermux comes up get buffered and are sent over serial when it comes up and crowtty connects. I've also changed the default tracing level when no crowtty has connected from OFF to INFO, so that we can actually record high-level traces from the boot process.

Also, I've improved some of the existing tracing diagnostics, and added new ones.

Here's what the new tracing looks like: image