mirror of
https://github.com/opnsense/src.git
synced 2026-06-04 22:32:43 -04:00
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:
parent
58ec2d0d4a
commit
b58fe4eb29
1 changed files with 2 additions and 0 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Reference in a new issue