]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Split out dumper allocation from list insertion
authorMitchell Horne <mhorne@FreeBSD.org>
Mon, 9 Aug 2021 17:21:07 +0000 (14:21 -0300)
committerMitchell Horne <mhorne@FreeBSD.org>
Tue, 5 Apr 2022 18:35:05 +0000 (15:35 -0300)
commit59c27ea18c32f5db2c2f9e8213b3ed4219e70704
treebdf1f08dc557a9bbd97122fbdebac4edb65e96b3
parent071b78ce8fecd874c9aaa329467399c7b500c2e8
Split out dumper allocation from list insertion

Add a new function, dumper_create(), to allocate a dumper.
dumper_insert() will call this function and retains the existing
behaviour.

This is desirable for performing live dumps of the system. Here, there
is a need to allocate and configure a dumper structure that is invoked
outside of the typical debugger context. Therefore, it should be
excluded from the list of panic-time dumpers.

free_single_dumper() is made public and renamed to dumper_destroy().

Reviewed by: kib, markj
MFC after: 1 week
Sponsored by: Juniper Networks, Inc.
Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D34068
sys/kern/kern_shutdown.c
sys/sys/conf.h