From nobody Sat Jul 02 14:04: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 6610D87B4EA; Sat, 2 Jul 2022 14:04:06 +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 4LZv1y2Sqhz3Dkt; Sat, 2 Jul 2022 14:04:06 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1656770646; 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=7IYwIWgRts9htEptdKKBEqR+xC0VLufXRkqEkp/y3QE=; b=TzIK5zxnUGsuheAsq1b7I2/igwgvB5M2UKs5vX0P1WvuVTqyWPY+ZXf8ps0RQgz7IirZmU W54X5q6mFThYpFc4zh9ij+QtzkOIkp85YvOHLbrZIr5ml7de8CHP7nFaXDZTiNbrD1YAU6 g8lAPIMrkN45T9F9iF/R5mg88aebXpvHBdVrz7LJ+gU1WleJ4JWxPxuAigbpXOLqS6sSZB 43p+mThni+OnOcr3q8PxttnWO9Rpyr/XD37/hfpue+B0j53A8wCaiIKJr2laJLD6kQka4A KpA+3R7nbKV4OWVqeKQDGfBG+uJs7iXl50HSkPnyHzKQ6+2kVIou7Oe7LIxbZQ== 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 3492511988; Sat, 2 Jul 2022 14:04:06 +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 262E46RN038804; Sat, 2 Jul 2022 14:04:06 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 262E46rO038803; Sat, 2 Jul 2022 14:04:06 GMT (envelope-from git) Date: Sat, 2 Jul 2022 14:04:06 GMT Message-Id: <202207021404.262E46rO038803@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: b69996d1d5d0 - main - tty: Default to printing kernel stack traceback only on INVARIANT kernels 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: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b69996d1d5d08fd5009ac325ea8e8154efd01b33 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1656770646; 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=7IYwIWgRts9htEptdKKBEqR+xC0VLufXRkqEkp/y3QE=; b=OYiFG45ylx28BWpKx9gnZOcy9CnGF66fXomhaUM+cnsQ62q9S7IoXdRVDQDfgrgOwxSmqR 2ZHetyO6Med7eJxiEp4FDIg6X5XThLUqCdJr9xe9CqV1OAPsAkVZs5+Z4BBzhncScViGwT qm/LOkT6f1XE8VOd0fBc9TPhJKo9kwRuIiROKJ6AeGMKg5MM6UL5dO5FG/1QwlGa+R3t+R USUc66q5HL7mEFwW14mSamBEsz4PjdRqiKV+XEaQdoioFDnrwcH3fITo7/a9qdlm8d7ZAR Di7N9lpykHZsFgwF+n4kU/Zq7Ar3P/HK/gUe9uIhW7HcNLye6j8E0J3ZUlPGsw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1656770646; a=rsa-sha256; cv=none; b=lTXBmsQWiU+YkW7LAnO39754IpI9fJYXaGAgozkVM6wzGjAC1xeQSiZHeqB6TnF0UL6hup vj0ynE0myalDxshXjVLZJN769oGiYd69AqRFtS0A8syF2CVraA1hCHVBlcWxwg1z6Tyd+x elzLt1lOc3CPI1pSTirjE8IgKbUpPccrkKIXc/CJP4tvAbN2gLOWsi+4nwVCZszHRcnDfF SDqtT7GjD3MH05VZlsYoAQYh2qG/r4mIk0KadIs/WTX/UKlT+mraOKqmJD7gFfYf4QQ/fw rT3W9ST5pR1MSKAzB6Mp10RAwZZBjt8VLUV/hwYFV0e9Kpj+aIB2FqRouVFKyw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=b69996d1d5d08fd5009ac325ea8e8154efd01b33 commit b69996d1d5d08fd5009ac325ea8e8154efd01b33 Author: Warner Losh AuthorDate: 2022-06-29 14:26:58 +0000 Commit: Warner Losh CommitDate: 2022-07-02 14:02:12 +0000 tty: Default to printing kernel stack traceback only on INVARIANT kernels Change the default from printing a breif kernel thread stack informaton back to omitting it for non-invariant kernels in response to SIGINFO/^T. Full and brief stack support can be selected with the kern.tty_info_kstacks sysctl. MFC After: 2 weeks Sponsored by: Netflix Reviewed by: grembo, jhb Differential Revision: https://reviews.freebsd.org/D35576 --- sys/kern/tty_info.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/kern/tty_info.c b/sys/kern/tty_info.c index 237aa47a18da..be6de114bdfd 100644 --- a/sys/kern/tty_info.c +++ b/sys/kern/tty_info.c @@ -239,7 +239,11 @@ sbuf_tty_drain(void *a, const char *d, int len) } #ifdef STACK +#ifdef INVARIANTS static int tty_info_kstacks = STACK_SBUF_FMT_COMPACT; +#else +static int tty_info_kstacks = STACK_SBUF_FMT_NONE; +#endif static int sysctl_tty_info_kstacks(SYSCTL_HANDLER_ARGS)