From nobody Sun Sep 29 15:25:13 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 4XGp152sPSz5XnrW; Sun, 29 Sep 2024 15:25:13 +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 4XGp152R1wz4kWj; Sun, 29 Sep 2024 15:25:13 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727623513; 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=VxJ40hmI8AOJwtr2NQYyfHRHv/Osg9l0n/5YS8DVJ3Q=; b=Y4kVhMz9MYGcRLHSLL9USpyLRWleI1rr99Hx289R1WlPKTRu8eEaskSVE9Rl/JFIx1hwwB /5SrtmR8XRksk1eP+KlWZqRa1AgMGHPwW6mjaiPhh/kmG5keQFtGtG3VTQCyNyZ6VU+87Z d92vH80Pfnlp0fHVG5abZY0+78v2GfyXGY2H42SVHWJ+L8spHuT/UWxnEIdByL9b56+Yhp 5Bn1d7RIEgMER3FHIS8SR4ud6V+UzaimlqIW4CcBeOzTVOoyg0hCvtSka6y4zZz2Ls4nSF p2lGzgkGaZffxnV3ysUpvWH4Fa01SVixVTyfpKziNRf2mMkoTudI/teQNfrNMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727623513; 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=VxJ40hmI8AOJwtr2NQYyfHRHv/Osg9l0n/5YS8DVJ3Q=; b=f53Clvr5Z5SmwE9BBzkjDydcJ3ahQQKlJ8UN7CDdoFz19KueVRi+g8h4YW7A5X6leogE+P DNndpeiq31bRSDiAURSOqADX0Aq1DtXHIMf6IPcvhOyElbRNuu39+qRzfSAzGFUrWpaTT3 n242GGf963Q4pIB/DuOQe4WFQ63bihLB7vTxMn07uiK+j++cZ+TAS26IZbr3S759SR7T77 jHbzW69dT09QGP68nmBBdL8KX4wfR4UfVaA/e0pVJTcrvIRt+VestyoDs6cVVqwOmcBLLZ 5vkGwFOn47ORA26v5IM03fHXDebiOGPt5nre+L30V444EPdVCJeviojCpNIguw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1727623513; a=rsa-sha256; cv=none; b=XBXKyxMUsKoQAbwYpNilt36X5DBNAx6rht1DERs2lc/OmnT2d7vplaBZZoIlIkxuJHx++z Fdpl4IWq69jA2wb32QohBrHK77ZRtS2VgFoyxuibY1GU7cMiETN7c6Zs4oUcDP3dmbt0uW O4uvbrL3/ErGtOTolp7NQb5DpWbcd+xVjOqFtjJc27xZMBsQXnU1QgdSBUikR3qrJN/Txa dHRZeDm8V9ZpG5NAuQniAk7VMDoOSOE735YbU0H8svXgvhydc3TONdeY4PD+aESYErJbYf Dqf5np3iM3dCN4lk04UHmWGL43Wm30+oqTB+WjVBMlLKN7PIDYQlyRKX8M3lJQ== 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 4XGp1522vdzFDB; Sun, 29 Sep 2024 15:25:13 +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 48TFPDk9030331; Sun, 29 Sep 2024 15:25:13 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48TFPDG4030328; Sun, 29 Sep 2024 15:25:13 GMT (envelope-from git) Date: Sun, 29 Sep 2024 15:25:13 GMT Message-Id: <202409291525.48TFPDG4030328@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: a9f473632607 - stable/14 - loader: Add TSLOG to interpreter built-ins 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: a9f47363260761a4f90609dc54d115715c907db9 Auto-Submitted: auto-generated The branch stable/14 has been updated by cperciva: URL: https://cgit.FreeBSD.org/src/commit/?id=a9f47363260761a4f90609dc54d115715c907db9 commit a9f47363260761a4f90609dc54d115715c907db9 Author: Colin Percival AuthorDate: 2024-09-18 11:01:41 +0000 Commit: Colin Percival CommitDate: 2024-09-29 15:24:52 +0000 loader: Add TSLOG to interpreter built-ins Wrap each call to a built-in command with TSENTER/TSEXIT to make it easier to see where time is going in the loader. MFC after: 1 week Sponsored by: Amazon Differential Revision: https://reviews.freebsd.org/D46630 (cherry picked from commit 58ec2d0d4a3c3bcf741d9694dc7696c7b4e753b9) --- stand/common/interp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stand/common/interp.c b/stand/common/interp.c index c6ac01ea099b..ead7eb136879 100644 --- a/stand/common/interp.c +++ b/stand/common/interp.c @@ -189,7 +189,9 @@ interp_builtin_cmd(int argc, char *argv[]) cmd = interp_lookup_cmd(argv[0]); if (cmd != NULL && cmd->c_fn) { + TSENTER2(argv[0]); result = cmd->c_fn(argc, argv); + TSEXIT(); } else { command_errmsg = "unknown command"; }