From nobody Thu Oct 19 14:02:46 2023 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 4SB8Yg040Pz4xTGb; Thu, 19 Oct 2023 14:02:47 +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 4SB8Yf6S54z4RrV; Thu, 19 Oct 2023 14:02:46 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1697724166; 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=vLB0iRUerOkcK3BbPMk/46ES3MLZgzduEQzRfn2p2Bs=; b=ItoHUWRyI5dFIRcWdWaz0Sc5XtEuYyqLIVZaseZmetGknZ3Hmsl9u092qEmsl0gB/gzyc2 EVvqkUVZoJ1QQ4NvnYdQXvOToWh9cNmmEqRhm55RIcUgxuBqLFXAvcedFl5Fbu3m9cZPNG uJAdjeVW6syI50azw4qRzmwXlUIIHrNrm+DEmPc/iScQyfBSejfIIFL9UB1eEWy9KWLGCE sLvERobpKe2QAW/GYDbudpvziT2fHz+45KTv/tW3+1JBsXy0pf/tcLlgOmnQFo+2LieBvG TW5/MFfsrN7O67I25jr8bjvykZQL6GBoIaejVLVZiNK2Y5xKQ7hyc2BS4zrTdw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1697724166; a=rsa-sha256; cv=none; b=Bmtm9xgDB59hXYfXv0pd9Gh/r6J5j1a3YhkeFEVNxyHBujkVANayzF7j9HE+s4W3RXnGmc t1D14J8ed3S+0Hq+zjE6XjhQWLGRU4Ed+GRIhTC3bs7S5K5fcTuNPjRZ6G5MPJsvt+pexT ttk1iKtaQLJWTI/+rV1+P9h3kPuC27xVvAy1eZLZKr6oGsfOhcLJs6q04faZhv3D3mHWWU wC7ckmZgKS0TpNt41hxO0n2f9wAvFvFxsUi0WpXsyopN/fhMORbETzb5w/vMZfcWJD9p1e lvpLCx24J/y4VkaSsY+ZePBPv068zx42AjoDpgIaI3UwpPwc5ZSV6NJEBW1G7w== 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=1697724166; 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=vLB0iRUerOkcK3BbPMk/46ES3MLZgzduEQzRfn2p2Bs=; b=e3gecCuD3woP/4qXjEcJsYKoHOHytNleqG61EvcQSZEqni9deY/PyO8c6qbT6cJGeX/Ffr JR3UYi+Kzbmizbf06nEp+WyQI5ZshOD8heRRTXHXqi/hA8a0vkf+VpZlzYVaMmp+87bMsV MOsGvxieKYlYEolOQKhOzs7id70xCtOV8okVAizoV4IdjoRVZzLqskEfV9brSV3YSAkoNi dL77IYSMrwmthlRTeZx6NXL2X4fJFy9xPTGWNOg9hRoAcnPrGOJfcz4xjcdEFzoze/Ij0X dEwBTcvS2PcDyz4rHkmwm2UUOjHwu6kWawrZziLuEvbDGGZWyX19H151xmFTfg== 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 4SB8Yf5WfmzsR7; Thu, 19 Oct 2023 14:02:46 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 39JE2kjN044746; Thu, 19 Oct 2023 14:02:46 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 39JE2kGh044743; Thu, 19 Oct 2023 14:02:46 GMT (envelope-from git) Date: Thu, 19 Oct 2023 14:02:46 GMT Message-Id: <202310191402.39JE2kGh044743@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Zhenlei Huang Subject: git: c525ec74b44f - stable/14 - boottrace: Add corresponding sysctl knob for loader tunable 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: zlei X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: c525ec74b44f471261b0e67eaa254e05fdef3d05 Auto-Submitted: auto-generated The branch stable/14 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=c525ec74b44f471261b0e67eaa254e05fdef3d05 commit c525ec74b44f471261b0e67eaa254e05fdef3d05 Author: Zhenlei Huang AuthorDate: 2023-10-12 10:14:48 +0000 Commit: Zhenlei Huang CommitDate: 2023-10-19 14:00:50 +0000 boottrace: Add corresponding sysctl knob for loader tunable The loader tunable 'kern.boottrace.table_size' does not have corresponding sysctl MIB entry. Add it so that it can be retrieved, and `sysctl -T` will also report it correctly. Reviewed by: markj MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D42138 (cherry picked from commit 51dc362d1a148362dc4cfacaa3629db928523204) --- sys/kern/kern_boottrace.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/kern/kern_boottrace.c b/sys/kern/kern_boottrace.c index cb013d4e8be1..86fee4f47fbe 100644 --- a/sys/kern/kern_boottrace.c +++ b/sys/kern/kern_boottrace.c @@ -158,6 +158,10 @@ SYSCTL_INT(_kern_boottrace, OID_AUTO, shutdown_trace_threshold, CTLFLAG_RWTUN, &shutdown_trace_threshold, 0, "Tracing threshold (ms) below which tracing is ignored"); +SYSCTL_UINT(_kern_boottrace, OID_AUTO, table_size, + CTLFLAG_RDTUN | CTLFLAG_NOFETCH, &bt.size, 0, + "Boot-time tracing table size"); + /* * Dump a trace to buffer or if buffer is NULL to console. *