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
This commit is contained in:
Colin Percival 2024-09-18 04:01:55 -07:00
parent 58ec2d0d4a
commit b58fe4eb29

View file

@ -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";