The branch main has been updated by cperciva:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=b58fe4eb29fbd3236df0f7fdfad4393d2536dbb5

commit b58fe4eb29fbd3236df0f7fdfad4393d2536dbb5
Author:     Colin Percival <cperc...@freebsd.org>
AuthorDate: 2024-09-18 11:01:55 +0000
Commit:     Colin Percival <cperc...@freebsd.org>
CommitDate: 2024-09-22 07:35:47 +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
---
 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 790d5c0ce1ad..17676cd9deb8 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";

Reply via email to