From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Cc: Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [PATCH 1/3] efi: payload: image: set LoaderTimeExecUSec for kernel images
Date: Fri, 28 Nov 2025 18:21:53 +0100 [thread overview]
Message-ID: <20251128172158.36324-1-a.fatoum@pengutronix.de> (raw)
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
next reply other threads:[~2025-11-28 17:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-28 17:21 Ahmad Fatoum [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251128172158.36324-1-a.fatoum@pengutronix.de \
--to=a.fatoum@pengutronix.de \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox