git: 0d348c621f4e - stable/14 - loader: Instrument EFI GetRNG with TSLOG
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 29 Sep 2024 15:25:14 UTC
The branch stable/14 has been updated by cperciva:
URL: https://cgit.FreeBSD.org/src/commit/?id=0d348c621f4e79278073b5ad4c9ca90a0e999f02
commit 0d348c621f4e79278073b5ad4c9ca90a0e999f02
Author: Colin Percival <cperciva@FreeBSD.org>
AuthorDate: 2024-09-18 11:01:55 +0000
Commit: Colin Percival <cperciva@FreeBSD.org>
CommitDate: 2024-09-29 15:24:52 +0000
loader: Instrument EFI GetRNG with TSLOG
On some systems, the EFI GetRNG is slow. Make it show up in flamecharts.
MFC after: 1 week
Sponsored by: Amazon
Differential Revision: https://reviews.freebsd.org/D46631
(cherry picked from commit b58fe4eb29fbd3236df0f7fdfad4393d2536dbb5)
---
stand/efi/loader/main.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/stand/efi/loader/main.c b/stand/efi/loader/main.c
index e4d62f2e940c..27fdb3bfefc9 100644
--- a/stand/efi/loader/main.c
+++ b/stand/efi/loader/main.c
@@ -1267,7 +1267,9 @@ command_seed_entropy(int argc, char *argv[])
return (CMD_ERROR);
}
+ TSENTER2("rng->GetRNG");
status = rng->GetRNG(rng, NULL, size, (UINT8 *)buf);
+ TSEXIT();
if (status != EFI_SUCCESS) {
free(buf);
command_errmsg = "GetRNG failed";