Date: Fri, 08 Jan 2021 16:49:26 -0800 From: Ravi Pokala <rpokala@freebsd.org> To: Warner Losh <imp@FreeBSD.org>, <src-committers@FreeBSD.org>, <dev-commits-src-all@FreeBSD.org>, <dev-commits-src-main@FreeBSD.org> Subject: Re: 936440560bde - main - sysctl: implement debug.kdb.panic_str Message-ID: <C2F36E22-2B08-41F3-A583-BD01B2A7C169@panasas.com> In-Reply-To: <202101082131.108LV4B1086024@gitrepo.freebsd.org> References: <202101082131.108LV4B1086024@gitrepo.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
-----Original Message----- From: <owner-src-committers@freebsd.org> on behalf of Warner Losh <imp@FreeBSD.org> Date: 2021-01-08, Friday at 13:31 To: <src-committers@FreeBSD.org>, <dev-commits-src-all@FreeBSD.org>, <dev-commits-src-main@FreeBSD.org> Subject: git: 936440560bde - main - sysctl: implement debug.kdb.panic_str The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=936440560bde54050e1ad9daae3b9103e05ad3fc commit 936440560bde54050e1ad9daae3b9103e05ad3fc Author: Warner Losh <imp@FreeBSD.org> AuthorDate: 2021-01-08 16:34:31 +0000 Commit: Warner Losh <imp@FreeBSD.org> CommitDate: 2021-01-08 21:30:28 +0000 sysctl: implement debug.kdb.panic_str ... --- a/sys/kern/subr_kdb.c +++ b/sys/kern/subr_kdb.c @@ -109,6 +110,11 @@ SYSCTL_PROC(_debug_kdb, OID_AUTO, panic, kdb_sysctl_panic, "I", "set to panic the kernel"); +SYSCTL_PROC(_debug_kdb, OID_AUTO, panic_str, + CTLTYPE_STRING | CTLFLAG_RW | CTLFLAG_SECURE | CTLFLAG_MPSAFE, NULL, 0, + kdb_sysctl_panic_str, "A", + "set to panic the kernel with using the string as the panic message"); Might I suggest "trigger a kernel panic, using the provided string as the panic message". Thanks, Ravi (rpokala@) + SYSCTL_PROC(_debug_kdb, OID_AUTO, trap, CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_SECURE | CTLFLAG_MPSAFE, NULL, 0, kdb_sysctl_trap, "I",
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?C2F36E22-2B08-41F3-A583-BD01B2A7C169>