From nobody Mon Apr 04 19:11:55 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 1F9921A8106A; Mon, 4 Apr 2022 19:11:56 +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 4KXL4D0RPqz3swD; Mon, 4 Apr 2022 19:11:56 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649099516; 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=2kGMfh4qexFPFotU+ta0RVtEeeYqMVXJq1XvxaWZcoo=; b=p+ZpWPr4j9lXOwfETdesh5/ueaVYthAKKrbwNUEPsOkQTOmj3U9EsB9F1L5bUDAOe4ieBi W7moVXHKSjOIApL21zTvsvp3eX4E5w/p0nUzBiXwPsWROdHiiDUT++ux9NhshUCDBlMrkc j35ZXvPnYo3LKRWaaww2mDBZvYJKyIHxgX/oVLlpi43y3CO6sztxoYOF90mzRW8b0WKlWm m2k0scgTUyHQQmU4mqiaW0L67K3fBLPyrldzloc12X159Fi8SWzCOg9XgdrRJqiJnN8xYo AdRlkYkFvY9Tk87dK92POjMw0zT54D9Iq+5onZImFx3d2WV6EEUblRZ6k6Chkg== 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 E45DA17A7F; Mon, 4 Apr 2022 19:11:55 +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 234JBtu6051355; Mon, 4 Apr 2022 19:11:55 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 234JBthY051354; Mon, 4 Apr 2022 19:11:55 GMT (envelope-from git) Date: Mon, 4 Apr 2022 19:11:55 GMT Message-Id: <202204041911.234JBthY051354@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: 794e30fcfe2b - stable/13 - 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/stable/13 X-Git-Reftype: branch X-Git-Commit: 794e30fcfe2b5e2c1ab0aecf40b69b2c8df1e48b Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649099516; 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=2kGMfh4qexFPFotU+ta0RVtEeeYqMVXJq1XvxaWZcoo=; b=yIDVBKooCbWRpV3S+6wg0EbalRQj0+SRH0waY45qMkKH8kYlkPb/SXFmPCZDV42WM4G+Lp bDD4CP73KpzabyQts6sWSPUv1cDqtbrne9QouLjnENomPC1Qxuy1XagigTzhfjLjlotsMo xjh2Xk74nHRhLdcWp2leLuU0FI2dNQy9sPcxYSzWQqUdzgUcr1oILRJmrbpC7xn7H9/94P m/jJjNgdSlpbRv/vbokYOqUDeOrID3YxZ1EjBJFaznQoL7SHGatlEGUUpzD87sB5Lf6OWM hyh6HTvSqnefHmyq/xDRu+2IDTyyLb4F23rZHOGJb2JNEcLtAhfXXs+pW5RpyQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649099516; a=rsa-sha256; cv=none; b=NrVQ3zoJvwaDPXhFvko7y/xpNPSURsuYmaH8Us4sjUvaLy8uG0OukFxPkojyVgUzPC+Klp oGqA91mtjQKAG80WVMkKBl8tKnRI4R9uEnTaIEoUm5hkkuQlz7rgiIph/B2+UnITQ1Q0Jc hivapGqCjzWHgxNWBWOlC2kFLNobNigIvpJnTNTLqY9DF3lIdvd6WOxXBzkTpVHaQQkvni 1C1u3t6gGjf/V/KDKmQ3aH1JTePhd4QaRsFLuEs0P5sq0wQ3vgLYso8OcCrZ7kCqXX/1yo VRmjr4tf7F3YK4bCFG1KmQ0dIx/F1F40yariM+fPCtr5RiCZHN3CqhkFH5xJ7A== 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=794e30fcfe2b5e2c1ab0aecf40b69b2c8df1e48b commit 794e30fcfe2b5e2c1ab0aecf40b69b2c8df1e48b Author: Colin Percival AuthorDate: 2022-03-20 17:41:58 +0000 Commit: Colin Percival CommitDate: 2022-04-04 19:11:30 +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`. Differential Revision: https://reviews.freebsd.org/D34616 (cherry picked from commit 2406867f5b178a81c653b14524c0d5bad8189d2c) --- 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");