From b58fe4eb29fbd3236df0f7fdfad4393d2536dbb5 Mon Sep 17 00:00:00 2001 From: Colin Percival Date: Wed, 18 Sep 2024 04:01:55 -0700 Subject: [PATCH] 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 --- 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 790d5c0ce1a..17676cd9deb 100644 --- a/stand/efi/loader/main.c +++ b/stand/efi/loader/main.c @@ -1268,7 +1268,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";