]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
sysctl: implement debug.kdb.panic_str
authorWarner Losh <imp@FreeBSD.org>
Fri, 8 Jan 2021 16:34:31 +0000 (09:34 -0700)
committerWarner Losh <imp@FreeBSD.org>
Fri, 8 Jan 2021 21:30:28 +0000 (14:30 -0700)
commit936440560bde54050e1ad9daae3b9103e05ad3fc
tree7dd0a7bd89f7cb14862f3e26d64f8e830adf1b9a
parent7c6a71d16c2200a9f580bdcd20b3e13edcc05904
sysctl: implement debug.kdb.panic_str

This is just like debug.kdb.panic, except the string that's passed in
is reported in the panic message. This allows people with automated
systems to collect kernel panics over a large fleet of machines to
flag panics better. Strings like "Warner look at this hang" or "see
JIRA ABC-1234 for details" allow these automated systems to route the
forced panic to the appropriate engineers like you can with other
types of panics. Other users are likely possible.

Relnotes: Yes
Sponsored by: Netflix
Reviewed by: allanjude (earlier version)
Suggestions from review folded in by: 0mp, emaste, lwhsu
Differential Revision: https://reviews.freebsd.org/D28041
share/man/man7/security.7
sys/kern/subr_kdb.c