From nobody Wed Dec 29 23:06:26 2021 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 6D950191FB7A; Wed, 29 Dec 2021 23:06:28 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JPRq74wqyz3kNF; Wed, 29 Dec 2021 23:06:27 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 982D1597A; Wed, 29 Dec 2021 23:06:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1BTN6QfL090289; Wed, 29 Dec 2021 23:06:26 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BTN6QbX090288; Wed, 29 Dec 2021 23:06:26 GMT (envelope-from git) Date: Wed, 29 Dec 2021 23:06:26 GMT Message-Id: <202112292306.1BTN6QbX090288@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: f388ad85c2aa - stable/13 - Add _sleep to 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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/stable/13 X-Git-Reftype: branch X-Git-Commit: f388ad85c2aa579ed9ef8090a36f8945b0fafc7b Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1640819188; 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=GU1MehavRp73VFeyixFEU6qjbfAd1vFnouw1lbB5x0o=; b=jz8hP4R6yZa823WQqvD2e5yRw3Y8tQr+K34cA278qh3RiEI31zyCZNnGBBMHayLq6e4CI0 460t8SDS2BHnlrtUnfTAdbzhMlhRJaE7hLJJ3CuhiclQTlJHHsNBRktjLxaleXuaHAJy8s b+HWopo9nfZ9M2r/QtOjxHEab43SuukdKXeQwy1Xe0zXozgIGme5G4CPZA4hU6QeNcxZYj qbtCnCh32zlzOSItFE7gQPYaxX/PEBxVjqeUYRNT/IS3ph+Ghqbs5/A95C6wP8l4tTncOP msA67pfLh8n8BUmhU6e9pwgARzlFXHVGE/BI5FVQ3vqZXGA5ghvu1rrp41QUJQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1640819188; a=rsa-sha256; cv=none; b=XxRODUzQNafPc1CHdzZhETN8p5ATrVZ3gQajpcOwdsn2QRsjsj2OtRuULrhNP/ndhFshx5 1MwUlkRI5xgtDmmQb8139LgESlFT7y0FCmgtMVlKVifud/Lc8Fgm7B8opl576VVjOWeOZB s9sVrrDDS8DYRCeXarfsGtGzhrA+mybwWZu2ghjxoEyZEFersjTdWPcJfT1LegeO5w5vha XlbRwZpiihovBUCepzp4gBdBRj+EG+7aj/jek+RMeRGyCePU0WwqR817xqLqzpvnX+TTtQ JN2d6TGEnemim2g9AR9ADI8GU9m5urSqCVwx3WzBx7czmHrb2HISMS3G4jtbQQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by cperciva: URL: https://cgit.FreeBSD.org/src/commit/?id=f388ad85c2aa579ed9ef8090a36f8945b0fafc7b commit f388ad85c2aa579ed9ef8090a36f8945b0fafc7b Author: Colin Percival AuthorDate: 2021-09-05 19:50:15 +0000 Commit: Colin Percival CommitDate: 2021-12-29 22:53:19 +0000 Add _sleep to TSLOG Most of the nvme initialization time in my tests is being spent here (via pause_sbt). Sponsored by: https://www.patreon.com/cperciva (cherry picked from commit bd11e253a9a459c9a7b69ebb1c68f0162eb6119f) --- sys/kern/kern_synch.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/kern/kern_synch.c b/sys/kern/kern_synch.c index 3d51af2740fc..46d14a35d1ea 100644 --- a/sys/kern/kern_synch.c +++ b/sys/kern/kern_synch.c @@ -141,6 +141,7 @@ _sleep(const void *ident, struct lock_object *lock, int priority, int catch, pri, rval, sleepq_flags; WITNESS_SAVE_DECL(lock_witness); + TSENTER(); td = curthread; #ifdef KTRACE if (KTRPOINT(td, KTR_CSW)) @@ -232,6 +233,7 @@ _sleep(const void *ident, struct lock_object *lock, int priority, class->lc_lock(lock, lock_state); WITNESS_RESTORE(lock, lock_witness); } + TSEXIT(); return (rval); }