From nobody Sun Mar 20 18:32:06 2022 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 6313E1A276A6; Sun, 20 Mar 2022 18:32:07 +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 4KM5vC1fZhz4fk5; Sun, 20 Mar 2022 18:32:07 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1647801127; 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=AvGjA8wR0i6kcAvXM4i4EFgW+VKgqcS3Yg4anR6YhAQ=; b=EbTvvxX/aSoBb3x0wIScF/eKET2jjdNj4ots2BNPniEEfQWmFNbMI84DL7qZtXW7tGVzlW /j0FgkmbYFhN/fWHaanJnXvr3cVV1DgKxe1DAf0txb0VgwjLTe1i4c+s8llnr4Os6f64KG ViDSKBfCzwOe8HudGkvyJ/kV2hQBU2/Wk63blZ0JMbHKnjVPNlw5KYMSE2djy4OC0JgMN3 tqO4eIR6WHREbp+9InbnLri6vGM2LfYBZ9eM9GJlTUu3Q+05aybkjDRBs8m5LMAE/Cyv1S JC5dTOwz0Zb/5G//QIoh9QEJpUz7IKFEjGqPW1dySY+pE4HVi6zXYcdjoR9fyw== 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 14B14416F; Sun, 20 Mar 2022 18:32:07 +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 22KIW6kI093420; Sun, 20 Mar 2022 18:32:06 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 22KIW6Nq093419; Sun, 20 Mar 2022 18:32:06 GMT (envelope-from git) Date: Sun, 20 Mar 2022 18:32:06 GMT Message-Id: <202203201832.22KIW6Nq093419@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: 2406867f5b17 - main - tslog: Add CTLFLAG_SKIP to sysctls 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/main X-Git-Reftype: branch X-Git-Commit: 2406867f5b178a81c653b14524c0d5bad8189d2c Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1647801127; 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=AvGjA8wR0i6kcAvXM4i4EFgW+VKgqcS3Yg4anR6YhAQ=; b=D3ArsvBWzZ5n0yeZpxEudeOdQzp8+Kv0xsW3eUrKohsYA/Bg2piVBY988VJTc+Ksc6Xn49 Za3r91O1eGNiLPGFJuCVvBwtA7aNmInYjY8S4VDR2kY9l6iGE9MGw/Zd12xyf/aH4IP8mm 8Hhc7oN1851VYqS0CTrJgw+vaFRc8TvmAnGsXgudwEQOeSSyGt+CYsfw/3EN+4YuqU8gAC E7aQ6yYvPhuUV/m73glfnWX4ygh5WPdVRfTpqKWgeEmCHS/63EjtXGYcIKCb0p/2wBjMyT IghYEwDo8VTjivSzgJTsXoYrR+SYNUPNgPaeGqq1CYOgJxFmO/iOqE4gyMBHtg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1647801127; a=rsa-sha256; cv=none; b=Jh/AKqeyKJJclxZx64SI/3tWbWb3eWA8roWNEQSRv69b9DY7kqqfoTaQZD2tz+G9Z98s5k LmBBaMbQYRRWTObJmJnXLLYtM1G/QlXDFZnXrH08yu1vrIPPJc0pC+Qtbx8Nz077FvC1s2 VRBEnF92mlSOolFC8CRYvyn8ZXh4y3e6EK9iALACso9qpLVsrKYzWfcTybDH8dgRiMpChX /kjbfbfi33t7TwTvt+K6RR7LvQ1gGX6Hn29PVR6u3M5TAGeNm04NxqBTo78xEZ2uceX+Km d6ti/SdYkaYHXM5/DS2eujyiyQTSb5LOTWn34MOYskoR6niCgYiYp/jIPXFLXQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by cperciva: URL: https://cgit.FreeBSD.org/src/commit/?id=2406867f5b178a81c653b14524c0d5bad8189d2c commit 2406867f5b178a81c653b14524c0d5bad8189d2c Author: Colin Percival AuthorDate: 2022-03-20 17:41:58 +0000 Commit: Colin Percival CommitDate: 2022-03-20 18:31:16 +0000 tslog: Add CTLFLAG_SKIP to sysctls The timestamp logs are quite large (often much larger than all the other sysctls combined) so it's unlikely anyone will want to have them displayed by `sysctl -a`. MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D34616 --- sys/kern/kern_tslog.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/kern/kern_tslog.c b/sys/kern/kern_tslog.c index 0e7ad3c9ff23..5eba7719880d 100644 --- a/sys/kern/kern_tslog.c +++ b/sys/kern/kern_tslog.c @@ -131,7 +131,8 @@ sysctl_debug_tslog(SYSCTL_HANDLER_ARGS) return (error); } -SYSCTL_PROC(_debug, OID_AUTO, tslog, CTLTYPE_STRING|CTLFLAG_RD|CTLFLAG_MPSAFE, +SYSCTL_PROC(_debug, OID_AUTO, tslog, + CTLTYPE_STRING|CTLFLAG_RD|CTLFLAG_MPSAFE|CTLFLAG_SKIP, 0, 0, sysctl_debug_tslog, "", "Dump recorded event timestamps"); MALLOC_DEFINE(M_TSLOGUSER, "tsloguser", "Strings used by userland tslog"); @@ -215,5 +216,6 @@ sysctl_debug_tslog_user(SYSCTL_HANDLER_ARGS) } SYSCTL_PROC(_debug, OID_AUTO, tslog_user, - CTLTYPE_STRING|CTLFLAG_RD|CTLFLAG_MPSAFE, 0, 0, sysctl_debug_tslog_user, + CTLTYPE_STRING|CTLFLAG_RD|CTLFLAG_MPSAFE|CTLFLAG_SKIP, + 0, 0, sysctl_debug_tslog_user, "", "Dump recorded userland event timestamps");