From nobody Mon Oct 09 10:31:54 2023 X-Original-To: dev-commits-src-main@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 4S3wLy6rjDz4xKh7; Mon, 9 Oct 2023 10:31:54 +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 4S3wLy6D5sz4Cmr; Mon, 9 Oct 2023 10:31:54 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1696847514; 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=0htOmwbyvN0I9oaktS9eIuM5v2V9fPe0ALgB8VTZJWo=; b=VCgU9smO7AjM3h7pudASL5Ff2LbZmNYF4kBORgwWbYQ6xNcu8TRgum/92fqBofAJy6y5J6 Rv9eG6KXvQ4cZfpUm3TF3c2ZrFvF8u/Lco3ircItsDvm/cxWHJOqNaueag3OJRvQyknLCU H9Io3RY3rFtLq3q8u1s4Ko58rYojzuiTO8BXCmOoUQ90+IpvrrV2D43BSgW5dTA44jblwt PvGrffTWIJ9Cw40p1vtYgJ3U/jy2YlJYgSgRanSAi1Fk8MpoVmO3fx+H5UHhGoNsCA3r5L 1ic0YOR1bVN9f6N+MpPBzun+s+ZTM1dwEa+NO+ikk+DOKXo+G2KHZdnTgDg6dA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1696847514; a=rsa-sha256; cv=none; b=tA16yOyPLU+hxupPDoHi8srrlcCVHGjz+pXn+kGGYR1RLRX5mdGDgw96DB4kUFLcej8K/r GdTlMyk+BY3ZIvIvzE8ZDJYQ+Y5IQWefJ8oiNx3J7HHt6WB8IBiW68QbKH9ps6UhramKr4 y1gRgF+QM9W8WGGwL+RXuArqmDk7tpRuoBPsWFZzxd9eB6ui4cnvxjGrhrzq3nEDoxTQKX DNtdxt/Ec1CQf3IlBNvJy5rvGT1aWcDfhXpJ08Wh9QwVEKSj5S4EIZCF0cl0lPE3YE7tl1 6XToVHmfqiS9Z6zynEFGR6oMSIit6JqyXP39hBPlAovQQLZtLL/M/Mkh330tUQ== 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=1696847514; 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=0htOmwbyvN0I9oaktS9eIuM5v2V9fPe0ALgB8VTZJWo=; b=FvJi+74I/iUU7jy3EiIeZT8SCodf2Uloi0H8BH1O2cKZzdSH+Mj6bvHtwagU4NJ2tklTjI 1Ml6NIzVs8V72h0Kyqnyy5MEg27LYH5gh+WbrshdQdlwSprJCEaJ6WPFNhK2rQtNU5MrmU ywg7JODcKiVsvMI6aQNTfsEGCl4OyGZPl8RK5HG1ehUc8pgvBKY0AvuMwhT0Fv+tpH+uMS PuuwKbS88NvQNC0YnEW80621GzrwYHe+0FPaheyrwDFYQ+QvVqCn1lriYE+jZNDTittlUM XI+S6XBlglTrnpCTf3tsUj/aZ7sVHaPR90pn9JYV7qDekkTdg/WUn4eskGYkfg== 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 4S3wLy5GQvzsY3; Mon, 9 Oct 2023 10:31:54 +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 399AVsc3003513; Mon, 9 Oct 2023 10:31:54 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 399AVsNh003510; Mon, 9 Oct 2023 10:31:54 GMT (envelope-from git) Date: Mon, 9 Oct 2023 10:31:54 GMT Message-Id: <202310091031.399AVsNh003510@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Zhenlei Huang Subject: git: 0eb2e197896e - main - ddb: Add sysctl flag CTLFLAG_TUN to loader tunable List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: 0eb2e197896e2ec8a45730b61eeb77d5431af69f Auto-Submitted: auto-generated The branch main has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=0eb2e197896e2ec8a45730b61eeb77d5431af69f commit 0eb2e197896e2ec8a45730b61eeb77d5431af69f Author: Zhenlei Huang AuthorDate: 2023-10-09 10:30:21 +0000 Commit: Zhenlei Huang CommitDate: 2023-10-09 10:30:21 +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 --- sys/ddb/db_capture.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/ddb/db_capture.c b/sys/ddb/db_capture.c index 98c6e806187a..b4e598bf45cc 100644 --- a/sys/ddb/db_capture.c +++ b/sys/ddb/db_capture.c @@ -165,8 +165,8 @@ sysctl_debug_ddb_capture_bufsize(SYSCTL_HANDLER_ARGS) return (0); } SYSCTL_PROC(_debug_ddb_capture, OID_AUTO, bufsize, - CTLTYPE_UINT | CTLFLAG_RW | CTLFLAG_MPSAFE, 0, 0, - sysctl_debug_ddb_capture_bufsize, "IU", + CTLTYPE_UINT | CTLFLAG_RWTUN | CTLFLAG_NOFETCH | CTLFLAG_MPSAFE, + 0, 0, sysctl_debug_ddb_capture_bufsize, "IU", "Size of DDB capture buffer"); /*