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

(cherry picked from commit 10fe6f80a6c871ba317ddc2684cecb8f02096943)

Details

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