From nobody Sun Sep 29 15:25:14 2024 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XGp1660j2z5XpCh; Sun, 29 Sep 2024 15:25:14 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XGp163zYnz4krZ; Sun, 29 Sep 2024 15:25:14 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727623514; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Vqt0Rdzjznk3+98s9qYbtttqrgCCSr3Qg9UCrUoZLQk=; b=qks9Nka7Az3ZCRNDfRH+0ul9p1+uOTzZsL16+IN8NS7ZP3RQWxW1E/er+QpJgcW26dHl4f cjq6OD3d3kQmZ5WJwI82bYWUZbymRCbyJ/T4b8m2j98D9qEgsk4ey8f0JWAIgG5PnG7Epg sDYXpaAlH0HzKNP1nYOSs8nFLUlqpF6AemH0AVHCHbxOKMEUQMEN3ooXSabXeooHHjqNBL wypUsnLrQsLPh9Zcf75/zaWOCi/nfufn2CdlYEN+ayRC8csEsY9DQ7C4Ranc3gC2cV2W0p hjMawFNSKLB4pAkZUcC2n7TVnfd+6KlG6ZkEGq0k4ORDXASN/wUqD/MuFAYh3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727623514; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Vqt0Rdzjznk3+98s9qYbtttqrgCCSr3Qg9UCrUoZLQk=; b=NvwWZlqm1GpB3Dq6LG+4s6wRoWZsddMlg2XT0GADz++z7n1yel6XObs0qFm8xvy8itJm8X 8qKi7Dn7E4BBnTLdv26lDCY0XHRHX/gheL66SkYii8UPzLU9YKWAtn3oQSWOEf2NQsBHd1 7UBybyPnkV7N6nKGPUxJ7nG14Or9Z1JWs+RwWwoAfMSq1Q2lzx7yW0LJ6N3TfD8b6mUnB1 JAP3DKGFQ+UAIS4Pl/9F6jZTh1o/46KwB9se6GcY672FYsGfO/0IlFfitVx7vgFN6f3mKd IMcFBmmjQiBmi47kLw3X607AzmuW0JpB0I+sn7qscP8yZiWZAmaKxDnxUDWn5Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1727623514; a=rsa-sha256; cv=none; b=WnFGDZTNL9fERBY74aWVsBI75daqpsydjLb5PkPrUX2g9dVU+ItNujlhA2b6eMt6zYKr0x DSWyaIla441XscEA7X7W4NKaVbRQcsd/8BDwIwSrSWn9NlJRri/N2mcO3N0dfLDyBwGuwZ sJu9Jf6+l3QDtG8ZmmTe+uSQHgml7V2VNyc4ltdhfCqHTigzcCs3o/1gdtZnx8bbnfJC/e /VeBNI34s4nvY1bLf/PM2q2go5Lfs2NmjeAkyUslWm1muyvhRYYwIEN2OEV5dlJv4YymwQ Kb6GFUw51fGrDokVFGQ2BeoWgV1rnXN+m7xYNM8bxs6bKUzGDLZmopaOtk7gTQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4XGp1633drzDc5; Sun, 29 Sep 2024 15:25:14 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 48TFPEku030376; Sun, 29 Sep 2024 15:25:14 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48TFPEwu030373; Sun, 29 Sep 2024 15:25:14 GMT (envelope-from git) Date: Sun, 29 Sep 2024 15:25:14 GMT Message-Id: <202409291525.48TFPEwu030373@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Colin Percival Subject: git: 0d348c621f4e - stable/14 - loader: Instrument EFI GetRNG with TSLOG List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: cperciva X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 0d348c621f4e79278073b5ad4c9ca90a0e999f02 Auto-Submitted: auto-generated The branch stable/14 has been updated by cperciva: URL: https://cgit.FreeBSD.org/src/commit/?id=0d348c621f4e79278073b5ad4c9ca90a0e999f02 commit 0d348c621f4e79278073b5ad4c9ca90a0e999f02 Author: Colin Percival AuthorDate: 2024-09-18 11:01:55 +0000 Commit: Colin Percival 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";