HomeFreeBSD

minidump: Use the provided dump bitset

Description

minidump: Use the provided dump bitset

When constructing the set of dumpable pages, use the bitset provided by
the state argument, rather than assuming vm_page_dump invariably. For
normal kernel minidumps this will be a pointer to vm_page_dump, but when
dumping the live system it will not.

To do this, the functions in vm_dumpset.h are extended to accept the
desired bitset as an argument. Note that this provided bitset is assumed
to be derived from vm_page_dump, and therefore has the same size.

Reviewed by: kib, markj, jhb
MFC after: 2 weeks
Sponsored by: Juniper Networks, Inc.
Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D31992

Details

Provenance
mhorneAuthored on Nov 17 2021, 3:35 PM
Reviewer
kib
Differential Revision
D31992: minidump: Use the provided dump bitset
Parents
rG1d2d1418b492: minidump: Use provided msgbuf pointer
Branches
Unknown
Tags
Unknown