From nobody Sun Dec 15 02:21:28 2024 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 4Y9mzF0h48z5h6tL; Sun, 15 Dec 2024 02:21:29 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Y9mzD72SXz4nX4; Sun, 15 Dec 2024 02:21:28 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1734229289; 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=R6sWFMt6dqdJhJk0atXJ4LqLqsXv3a0Exsc7/EayvmM=; b=eBRc6TF+W8fQ35Xmort/AVDa9DR5qxiI1YszADeaS4Mc8ZxCA3wcco1LC8Fz+ICyUSjzEc DxHa+mdLnXzYKmawsWtyhO56jcWz6HaTOxxA/4Wouvud9VED60qHzvnB7AwhoRVstiVuEZ yR0W0yKpzC7Gb8lyljeC2fuTDbGDwLqc1vkfLkJjHlcLgBZYqO5X/JZoB5MrnP5qB5m9Xi KyZLnQi3PQajhXcP/ZDzJ/8s5nywAZ80fSNn+KZq9mrTyoqjRzhh1YNPK1fYbuy5zZpE2w KLYqY6K2fIefeARsq7dOjO0XVAhJxa2sa1DoGIus8aUZ5LIWhdMAn+V1dHktVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1734229289; 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=R6sWFMt6dqdJhJk0atXJ4LqLqsXv3a0Exsc7/EayvmM=; b=DhvjH8tAH+HQh+FmEmbngmh2hID6f5lZoRVs57KQrKjPvEFosqkoc3JZIt4+AOLYdDBxKB WiGRgSqkLKw6gQGfhFQEMIF8NEYj1vmgVO252Rm0XKRSddEeJLoGi3YRFSZ9UU4f732DQa s23cI3yiHW727yFvjtTPgLpRc/ZwOIU0X/ylVb1sZ3PKRZShHzt+IiB7+gvnw6SC2h6cbL dGUujXYP/xs+wGgU9qxQtVHLwNl2seiSOBlFSvcQDWy9D4EqGcWAeXtOV8DLHt36gVK120 0j0JxzCenBvU2/f4UVwUFOsn01Be+xLPEXs9fCU1movhy2HyLCnFmeB+zv+Yow== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1734229289; a=rsa-sha256; cv=none; b=QimFiZRUYRF6g8k7DdS2MqzU9/6vaDOAcLOfRB6isgICI6YtvRtgd1jnbXn5qk11/24kWf OZCf/HFmEKNoRvwDdLKvMWS8QsxocVVopR+aedttYtAPlgkotGZHyDxGi28PF8pIOUJKkb FJjj6iDwSNI+kU/xeKelvquALLQTEnTbcnZnSQYnxlxt0oJx/Cl6Mp7AHo87EqxklrvTHo H4N2OWEXY8B6H6SeM65L4UX0FeDE8DlHNcigbwkbSTfJOC90muqQ+V2DLLrCHstlfjwpB0 RZVQZsituYiq4pMbp/qBFnbBXteolusZU1mUMiQamLUfA9aAmPirmNYdXMx+lQ== 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 4Y9mzD6dZSzp12; Sun, 15 Dec 2024 02:21:28 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4BF2LSas081551; Sun, 15 Dec 2024 02:21:28 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4BF2LSAV081548; Sun, 15 Dec 2024 02:21:28 GMT (envelope-from git) Date: Sun, 15 Dec 2024 02:21:28 GMT Message-Id: <202412150221.4BF2LSAV081548@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: 9c6454fe7048 - stable/14 - init_main: Use TUNABLE_INT_FETCH to initialize verbose_sysinit 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-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: 9c6454fe7048ade86faa1a864b04c7b250a660ec Auto-Submitted: auto-generated The branch stable/14 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=9c6454fe7048ade86faa1a864b04c7b250a660ec commit 9c6454fe7048ade86faa1a864b04c7b250a660ec Author: Zhenlei Huang AuthorDate: 2024-12-06 13:46:55 +0000 Commit: Zhenlei Huang CommitDate: 2024-12-15 02:20:52 +0000 init_main: Use TUNABLE_INT_FETCH to initialize verbose_sysinit It is too late to initialize verbose_sysinit via TUNABLE_INT, as TUNABLE_INT runs at the order of SI_SUB_TUNABLES, thus any subsystems those have order prior or equal to SI_SUB_TUNABLES are not logged. Reviewed by: kevans Fixes: c7962400c9a7 Add debug.verbose_sysinit tunable for VERBOSE_SYSINIT MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D47907 (cherry picked from commit a7cfcb26451219d6f4e60c486c855adeea288397) --- sys/kern/init_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c index 1575287716ee..3c907da945b2 100644 --- a/sys/kern/init_main.c +++ b/sys/kern/init_main.c @@ -141,7 +141,6 @@ SYSCTL_INT(_debug, OID_AUTO, bootverbose, CTLFLAG_RW, &bootverbose, 0, * - 1, 'compiled in but verbose by default' (default) */ int verbose_sysinit = VERBOSE_SYSINIT; -TUNABLE_INT("debug.verbose_sysinit", &verbose_sysinit); #endif #ifdef INVARIANTS @@ -274,8 +273,9 @@ mi_startup(void) /* Construct and sort sysinit list. */ sysinit_mklist(&sysinit_list, SET_BEGIN(sysinit_set), SET_LIMIT(sysinit_set)); - last = SI_SUB_COPYRIGHT; + last = SI_SUB_DUMMY; #if defined(VERBOSE_SYSINIT) + TUNABLE_INT_FETCH("debug.verbose_sysinit", &verbose_sysinit); verbose = 0; #if !defined(DDB) printf("VERBOSE_SYSINIT: DDB not enabled, symbol lookups disabled.\n");