From nobody Sun Sep 22 07:36:41 2024 X-Original-To: dev-commits-src-all@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 4XBHxk0sLWz5XYDw; Sun, 22 Sep 2024 07:36:42 +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 4XBHxj5Qxzz44h8; Sun, 22 Sep 2024 07:36:41 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1726990601; 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=4DBXTG/Si0XbAkVbLo81Mdu+Tjnx0H/8Oa0DSmecX3o=; b=k0t4MLmd1Ua09bqlrpRCf+9A5CTaCn62yNXYxnaVJ/QSr81bw0XPAQLOW2o0CsLXDitjEd C5u+IXiY3tNX/3IGOAI80dsL15O7LsQp10cwQ2XmNLDErhkOLpsHnsUMXHde+MIBQZRVAM qVIlPaI9ixZg6bE7M+m56GKNF/XLlFSjGeNMOphwEBUBjCaSUlwvZXIQ4azqmjacCgoc6H uxuiZOqepn5285LNMX84nNGe7U2mCpPn77KYfYqueu2rgS3W/SiATDbxJwxoTgvnPK7Ds0 +a9iLwHuFW+lnnGj+SMguZ26C4PvY6sA8W0psDfzqTf0M4P/+sPS50xGcxfQWw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1726990601; a=rsa-sha256; cv=none; b=V5JBiKwQVHR/ybES3stNvPZHGOJpYSF12p9QDkKkxspUXk8iioBtJBXvMOZiGsd7bm3PQ9 hKOriPfEmYayK3uo3T/A5ZYszRqQjYSpktxCtTzD8w+hAYQE14qh8UwHeDazmdQq4JsOBt 5fWc5u1R8hPbXnmRfsUbSNS6KFMNyQPjrLbw4SOEhAsue+NcIm3Mepcmou2mh1gX0yvW0F Rq6W0LwYaBCYsFXTrrlss8QJJpgYtUVbgI2/mhpo+3VVEM3RynFjnAuTt2bXnwuIhS5V03 x2AM+miap5vZlvDdQG/DpfdD1x9cGSgXw1e4HMgGACxNM8rLfJRgi2WqRCU+2w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1726990601; 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=4DBXTG/Si0XbAkVbLo81Mdu+Tjnx0H/8Oa0DSmecX3o=; b=Gv1B8v4EN1B3bX46SCI0+c6WObDaoCdTxiOLnKAsSVDKdckwSH84OmZHnV1lXVVZ02vDbq 9LdtTmVo5fVgCR13jv6w2mUGrbw9bRcTV48bmSLhwnlDZkfQIIzmwf290fqa1UBWiTBnfr MQhtIHEKOEfPfD3I23yoSgzcocPtUMMXfvK9TJ9c2t/snhQJ5LLButZRz07odf/EQo4T42 nDtvejBqUtDqxhQYNwbv7hIzh7HKh0PYb2rK1lXtL9XagaEk6pOnNqBKHth7T3GffFtpSa klKTZXVxHMP8GKb8QVs0CreTdfzO2rdrYkcLu5Hw69OThNYHM3ZRfkR7YMDfww== 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 4XBHxj4q4Kz17Lh; Sun, 22 Sep 2024 07:36:41 +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 48M7affG097090; Sun, 22 Sep 2024 07:36:41 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48M7af2e097087; Sun, 22 Sep 2024 07:36:41 GMT (envelope-from git) Date: Sun, 22 Sep 2024 07:36:41 GMT Message-Id: <202409220736.48M7af2e097087@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Colin Percival Subject: git: b58fe4eb29fb - main - loader: Instrument EFI GetRNG with TSLOG List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@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/main X-Git-Reftype: branch X-Git-Commit: b58fe4eb29fbd3236df0f7fdfad4393d2536dbb5 Auto-Submitted: auto-generated The branch main has been updated by cperciva: URL: https://cgit.FreeBSD.org/src/commit/?id=b58fe4eb29fbd3236df0f7fdfad4393d2536dbb5 commit b58fe4eb29fbd3236df0f7fdfad4393d2536dbb5 Author: Colin Percival AuthorDate: 2024-09-18 11:01:55 +0000 Commit: Colin Percival 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";