[RFC PATCH v1 1/7] efi_loader: make efi_exit_boot_services() call bootstage_report()
Jerome Forissier
jerome.forissier at linaro.org
Fri Apr 11 17:29:27 CEST 2025
CONFIG_BOOTSTAGE_REPORT is currently supported in the bootm command
only. Add support to the EFI boot.
Signed-off-by: Jerome Forissier <jerome.forissier at linaro.org>
---
lib/efi_loader/efi_boottime.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/lib/efi_loader/efi_boottime.c b/lib/efi_loader/efi_boottime.c
index c8d9a6037f7..96da279afd4 100644
--- a/lib/efi_loader/efi_boottime.c
+++ b/lib/efi_loader/efi_boottime.c
@@ -8,6 +8,7 @@
#define LOG_CATEGORY LOGC_EFI
#include <bootm.h>
+#include <bootstage.h>
#include <div64.h>
#include <dm/device.h>
#include <dm/root.h>
@@ -2179,6 +2180,12 @@ static efi_status_t EFIAPI efi_exit_boot_services(efi_handle_t image_handle,
EFI_ENTRY("%p, %zx", image_handle, map_key);
+#if !defined(USE_HOSTCC)
+#if CONFIG_IS_ENABLED(BOOTSTAGE)
+ bootstage_report();
+#endif
+#endif
+
/* Check that the caller has read the current memory map */
if (map_key != efi_memory_map_key) {
ret = EFI_INVALID_PARAMETER;
--
2.43.0
More information about the U-Boot
mailing list