[PATCH 10/15] efi_loader: Add support for logging EFI calls

Simon Glass sjg at chromium.org
Thu Oct 31 19:01:47 CET 2024


Hi Heinrich,

On Tue, 29 Oct 2024 at 23:32, Heinrich Schuchardt <xypron.glpk at gmx.de> wrote:
>
>
>
> Am 28. Oktober 2024 13:48:01 MEZ schrieb Simon Glass <sjg at chromium.org>:
> >The current logging system suffers from some disadvantages, mainly that
> >it writes its output to the console and cannot be easily reviewed.
> >
> >Add a dedicated log, storing records in a binary format and including
> >the result codes and any return values from each call. The log is built
> >sequentially in memory and can be reviewed after any EFI operation. It
> >could potentially be written to media for later review, but that is not
> >implemented so far.
>
> An EFI specific solution is not a good approach as it does not scale to other parts of the code.  Please, implement a log driver to collect the messages that you are interested in.
>

I can do that too, but it isn't as easy to programmatically parse. I'd
like to track what calls are made and understand better what is going
on when Ubuntu boots, etc.

Regards,
Simon


More information about the U-Boot mailing list