opnsense-src/sys/mips
Mitchell Horne 588ab3c774 Allow minidumps to be performed on the live system
Add a boolean parameter to minidumpsys(), to indicate a live dump. When
requested, take a snapshot of important global state, and pass this to
the machine-dependent minidump function. For now this includes the
kernel message buffer, and the bitset of pages to be dumped. Beyond
this, we don't take much action to protect the integrity of the dump
from changes in the running system.

A new function msgbuf_duplicate() is added for snapshotting the message
buffer. msgbuf_copy() is insufficient for this purpose since it marks
any new characters it finds as read.

For now, nothing can actually trigger a live minidump. A future patch
will add the mechanism for this. For simplicity and safety, live dumps
are disallowed for mips.

Reviewed by:	markj, jhb
MFC after:	2 weeks
Sponsored by:	Juniper Networks, Inc.
Sponsored by:	Klara, Inc.
Differential Revision:	https://reviews.freebsd.org/D31993
2021-11-19 15:05:53 -04:00
..
atheros [ar71xx] During reset, don't spin, just keep trying 2021-05-22 15:53:00 -07:00
beri Avoid dump_avail[] redefinition. 2020-10-14 22:51:40 +00:00
broadcom Remove "All Rights Reserved" from FreeBSD Foundation sys/ copyrights 2021-08-08 10:42:24 -04:00
cavium Fix a common typo in source code comments 2021-09-04 12:56:57 +02:00
conf Add a COMPAT_FREEBSD13 kernel option 2021-11-17 03:08:40 +01:00
include minidump: Parameterize minidumpsys() 2021-11-19 15:05:52 -04:00
ingenic Fix some common typos in comments 2021-03-13 18:26:15 +01:00
malta mips: fix build w/ TICK_USE_MALTA_RTC defined 2020-12-25 19:47:45 +01:00
mediatek mtk: Add printing of CPU model 2021-06-11 14:28:54 -06:00
mips Allow minidumps to be performed on the live system 2021-11-19 15:05:53 -04:00
nlm Create sys/reg.h for the common code previously in machine/reg.h 2021-08-30 12:50:53 +01:00