mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/3] efi: payload: image: set LoaderTimeExecUSec for kernel images
@ 2025-11-28 17:21 Ahmad Fatoum
  2025-11-28 17:21 ` [PATCH 2/3] efi: payload: fold setup_header.h into handover.c Ahmad Fatoum
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Ahmad Fatoum @ 2025-11-28 17:21 UTC (permalink / raw)
  To: barebox; +Cc: Ahmad Fatoum

We already do this for handover, so systemd can show time spent since
barebox kicked off kernel boot.

Populate it for the non-legacy boot as well.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
 efi/payload/image.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/efi/payload/image.c b/efi/payload/image.c
index 22ff5d27ced6..5e268ed0ce35 100644
--- a/efi/payload/image.c
+++ b/efi/payload/image.c
@@ -10,6 +10,7 @@
 #include <clock.h>
 #include <common.h>
 #include <linux/sizes.h>
+#include <linux/ktime.h>
 #include <memory.h>
 #include <init.h>
 #include <driver.h>
@@ -129,6 +130,9 @@ int efi_execute_image(efi_handle_t handle,
 		}
 		printf("...\n");
 
+		efi_set_variable_usec("LoaderTimeExecUSec", &efi_systemd_vendor_guid,
+				      ktime_to_us(ktime_get()));
+
 		shutdown_barebox();
 	}
 
-- 
2.47.3




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-12-01  9:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-28 17:21 [PATCH 1/3] efi: payload: image: set LoaderTimeExecUSec for kernel images Ahmad Fatoum
2025-11-28 17:21 ` [PATCH 2/3] efi: payload: fold setup_header.h into handover.c Ahmad Fatoum
2025-11-28 17:21 ` [PATCH 3/3] efi: add option to generate vfat file for barebox.efi Ahmad Fatoum
2025-12-01  9:04 ` [PATCH 1/3] efi: payload: image: set LoaderTimeExecUSec for kernel images Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox