Skip to content

Output debug logs until kernel has fully started, then store them somewhere #438

@willdurand

Description

@willdurand

Instead of having a dedicated serial line for the debug logs, an idea could be to send them to the main (and likely only) serial line until the kernel has started. From there, we can avoid showing them because that would mess with the "UI" (e.g., kshell).

We could use a pseudo-file to show them if needed (e.g., we would use a ring buffer to store the logs exposed via the proc fs). It is going to work well until the system crashes, though because we'll lose everything probably. We could dump all the logs in PANIC() but, if it is a different crash, like unexpected, we'll be left without anything.

Another idea could be to use a feature flag for this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: p3This priority level reflects our backlog.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions