From nobody Thu Oct 12 05:10:56 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 4S5d5F0KDXz4xFV0; Thu, 12 Oct 2023 05:10:57 +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 4S5d5D6nVvz4gBW; Thu, 12 Oct 2023 05:10:56 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1697087457; 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=dXXNG232mLUKcRCT0lzrW78ys2hA20qp91+rz9mrE6Q=; b=dDtLHta64q3Mv8M4nTfpZOZCQFDItVlULueTeMKDdXVD8xvPB48oW/dhcAX1T4L213ajH3 pchQr/V4fADT/nmwlDktWNINVYXgkICa8strfjC+lz0Z9gyCKzq5fuSSgdm7Vacj/9MbRl jbZ/Ks0JMg4j3pvFDQdpyVyyqL4BWF3ga8kzumdY06iqiiS4lZQDfkFmttqsE/jYOV52bS JOTiIcBHvCMH2R4GJavmbhvIczs53rM2Sbsa0ZLj+uN53RDrszdfUKOIkK0Qipqj7sScuA Vsr2Swc+vqUvITLZp8RIxJuUTMrxFKh6WDnNuJmruzTfI3AcLpY39V8sJPThxA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1697087457; a=rsa-sha256; cv=none; b=MDSsRqSxrdHpNWcnBjrfnwv0KgSRRrVH5tVU9dpeFWVWj/Rnz8Ok/xpupA38rPBSxrilA0 ycohuJiuqwif73Q37KuZ6aCXiHoKH50rSjqmHSHmdpQbok53TjrfJcqtveQUoVD4pojeIN BDBc3juAxwV2IIFp5Q2iBQwZ+SAzPiauNCqILF3FF9dpTFU0gOqyROLR+mhAKbuyE78of9 OqxmemUkrhMpLYqv5RM0HUciTcmWEu2rk2gb6Pzu/vK7OppFAcjMUi9VAF10g7jim2io/s oOsHHCFTQfZPHzxVoW+FuBX38vweVDl6O35XdJNWzxm8GpK2nNBD0GnLsAZc8w== 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=1697087457; 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=dXXNG232mLUKcRCT0lzrW78ys2hA20qp91+rz9mrE6Q=; b=EDU7hzAZ3FwCX77JS/pdAGLPw2loPnv397HOmNcQLSjdJ1b67vGUx4rUBTUZ8+EPB7hokE raJPsD3y8rRtwInzJ9hcqo3i1wzSLskYK9Ij6DTRkRkn1h9vulndSqTFk9RBgb5yIJ6+4y xJfvwmuEVIwFpoS95CrGWbRcYZB/LHeVtfRl5y2gi0qxj29cyvyfK0elGwWjxMg6ORx2vW BbP8RkoWs5B5T04xXPtyv5kPe8Qpn0IgGUOeRgA1+n+94aLAux7RRL7zsNtMTiU+zGAnIs UJh/jSJpDz0gZ+l6Nhkz0Ua9AwnIaoaCSBrD/TSgIOrlO6g7pRTL9ABhXyF7UA== 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 4S5d5D5tkrzqvg; Thu, 12 Oct 2023 05:10:56 +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 39C5AubY071308; Thu, 12 Oct 2023 05:10:56 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 39C5AukN071305; Thu, 12 Oct 2023 05:10:56 GMT (envelope-from git) Date: Thu, 12 Oct 2023 05:10:56 GMT Message-Id: <202310120510.39C5AukN071305@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: 148a0f6bf059 - stable/12 - ddb: Add sysctl flag CTLFLAG_TUN to 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/12 X-Git-Reftype: branch X-Git-Commit: 148a0f6bf059664f965920aeb1573a1937fef301 Auto-Submitted: auto-generated The branch stable/12 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=148a0f6bf059664f965920aeb1573a1937fef301 commit 148a0f6bf059664f965920aeb1573a1937fef301 Author: Zhenlei Huang AuthorDate: 2023-10-09 10:30:21 +0000 Commit: Zhenlei Huang CommitDate: 2023-10-12 05:09:31 +0000 ddb: Add sysctl flag CTLFLAG_TUN to loader tunable The sysctl variable 'debug.ddb.capture.bufsize' is actually a loader tunable. Add sysctl flag CTLFLAG_TUN to it so that `sysctl -T` will report it correctly. No functional change intended. Reviewed by: kib, imp MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D42113 (cherry picked from commit 0eb2e197896e2ec8a45730b61eeb77d5431af69f) (cherry picked from commit 0de3d5316cbc8297c61952c392e4b9d58b538b99) (cherry picked from commit 9edd545370254b30ae4fbaa618b33004e3005bb3) --- sys/ddb/db_capture.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/ddb/db_capture.c b/sys/ddb/db_capture.c index 056edef437cd..810760fbceec 100644 --- a/sys/ddb/db_capture.c +++ b/sys/ddb/db_capture.c @@ -165,7 +165,8 @@ sysctl_debug_ddb_capture_bufsize(SYSCTL_HANDLER_ARGS) return (0); } -SYSCTL_PROC(_debug_ddb_capture, OID_AUTO, bufsize, CTLTYPE_UINT|CTLFLAG_RW, +SYSCTL_PROC(_debug_ddb_capture, OID_AUTO, bufsize, + CTLTYPE_UINT | CTLFLAG_RWTUN | CTLFLAG_NOFETCH, 0, 0, sysctl_debug_ddb_capture_bufsize, "IU", "Size of DDB capture buffer");