From nobody Sun Sep 22 07:36:40 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 4XBHxh5Zt4z5XYGn; Sun, 22 Sep 2024 07:36:40 +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 4XBHxh4WwVz44bh; Sun, 22 Sep 2024 07:36:40 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1726990600; 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=UHGytk8MN5kD5w1VvoS9vIc/ZJpmUNhf2USuqtqeFXw=; b=pWvMU6Nok+uB1M6CejFpyiRantBMNBTgzk7ZE8QFbHP6Ix7o8oGu78uZiMfVV1wOD+Ao2+ ZExAKzikZwyr9byTuENbog8N404vOCyNQjvptlm+Bc3ttcIwVrxgiDoGT+ptDrqeQkh8Yk pMKPCxbu9sD+7jcbEopAOrNq9TZ3sFU+zrdcDdeAYLqxu8oJXYtsJGaVOhoRvqemlA8Sf9 q+s1GBQTdg0A3gIKWaAgmdQfgQN0oPNeupnGVoLCyW98QlvFArrVORj6ex+QhTrIfNNDV5 JuPOHZLgZ4azMkqml86S9J6+Xk2svbuPO+NoTH2QclZxqUTFvt/0tyVTnAybfw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1726990600; a=rsa-sha256; cv=none; b=hj38zctiPxhBKIM7FHOH71/N5V4N94oEhYjrKfomVWqjc+yHsdxwjzN+RFFDOkZGb/Jknk lUYI0iGiqhrCgo2Bw036b9gYIJgA1v/FjCXt0sgwlkVvUFEBBfEBTNhU95KFtPE3VGGXRj D4+ELKmSVkzxf3TKBWRopfgJoyvtNPAm/6o2kY05UJCweMqKHZqdR4XiL3SOyQn1CgZu0G xOGIK5AYrUMFiGZwzAIH1Hs49Iw5MNAULguICrMGGkUWuO9kRs7asitgISOnBfcYXQWHRz X71GXxp4D69keBxztH+tJIwCVwBx9YcpbhNiHznRqZShygqOf3KEMqeV7boP6g== 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=1726990600; 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=UHGytk8MN5kD5w1VvoS9vIc/ZJpmUNhf2USuqtqeFXw=; b=dsuRO4XmbitRmW+TvIc0yBuwzdWBHxTjjgPRXHlanum+En3JrLfctZz8gXfMw/q8rSqhaA 6hYmS/XcrYajjGi74DPtyBLR7kIMZq3OMdrb0YlLuwJuHLdHzz4qEDVMxBmYnlIZwQlaZe +hhbNIG7+OOmavKVQhRpAIEsumFoEQBOOmGx/AYJ15kAY3P7zGM9GeuU5f4wzWGmVgWUoR kfFE74/6eRSaHuEOVhpdsdYXBEKW4rnkC4/iAr99Tl4NrLIz7VHl2SVXtKsgThuPmIjCNt JzrMDRDuiu8TCavFLmbsPSpuvftAghM+rpEKrAjdb9r7BRfdmtYgvDaAHK6Xcg== 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 4XBHxh47Tfz16sv; Sun, 22 Sep 2024 07:36:40 +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 48M7aeRd097037; Sun, 22 Sep 2024 07:36:40 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48M7aeZK097034; Sun, 22 Sep 2024 07:36:40 GMT (envelope-from git) Date: Sun, 22 Sep 2024 07:36:40 GMT Message-Id: <202409220736.48M7aeZK097034@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: 58ec2d0d4a3c - main - loader: Add TSLOG to interpreter built-ins 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: 58ec2d0d4a3c3bcf741d9694dc7696c7b4e753b9 Auto-Submitted: auto-generated The branch main has been updated by cperciva: URL: https://cgit.FreeBSD.org/src/commit/?id=58ec2d0d4a3c3bcf741d9694dc7696c7b4e753b9 commit 58ec2d0d4a3c3bcf741d9694dc7696c7b4e753b9 Author: Colin Percival AuthorDate: 2024-09-18 11:01:41 +0000 Commit: Colin Percival CommitDate: 2024-09-22 07:35:47 +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 --- stand/common/interp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stand/common/interp.c b/stand/common/interp.c index 5d20822e037d..e1fa4f9582ac 100644 --- a/stand/common/interp.c +++ b/stand/common/interp.c @@ -190,7 +190,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"; }