diff options
| author | Ard Biesheuvel <ardb@kernel.org> | 2026-09-06 13:15:12 +0200 |
|---|---|---|
| committer | Ard Biesheuvel <ardb@kernel.org> | 2026-09-17 10:36:23 +0100 |
| commit | 9bcc2af24b8671fc9ba3f59502f5469288a74934 (patch) | |
| tree | ce36de35f89819d1c46fdf4b4097372e383a6042 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 3dc73845074fa32035e3e47fecf4c02b826296f0 (diff) | |
| download | linux-next-9bcc2af24b8671fc9ba3f59502f5469288a74934.tar.gz linux-next-9bcc2af24b8671fc9ba3f59502f5469288a74934.zip | |
efi/libstub: Avoid efi_puts() for compile time constant strings
efi_puts() performs a UTF-8 to UTF-16 conversion on its input, as the
EFI console's native character set is UTF-16.
This is pointless for compile time constant strings, since we can
simply define those as UTF-16 to begin with. This takes slightly more
space, but removes any runtime handling of those strings, simplifying
the code.
Note that efi_puts() also performs LF to CR-LF conversion, so this needs
to be taken into account as well.
Reviewed-by: Vincent Mailhol <mailhol@kernel.org>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
