]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
minidump: Use the provided dump bitset
authorMitchell Horne <mhorne@FreeBSD.org>
Wed, 17 Nov 2021 15:35:18 +0000 (11:35 -0400)
committerMitchell Horne <mhorne@FreeBSD.org>
Fri, 19 Nov 2021 19:05:52 +0000 (15:05 -0400)
commit10fe6f80a6c871ba317ddc2684cecb8f02096943
treedbcbc21577558682e40c87d7501eeccd7dd76763
parent1d2d1418b492359921716aaa41e93750969b6e1f
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
12 files changed:
sys/amd64/amd64/minidump_machdep.c
sys/arm/arm/minidump_machdep.c
sys/arm64/arm64/minidump_machdep.c
sys/i386/i386/minidump_machdep_base.c
sys/mips/mips/minidump_machdep.c
sys/powerpc/aim/mmu_oea64.c
sys/powerpc/include/dump.h
sys/powerpc/include/mmuvar.h
sys/powerpc/powerpc/minidump_machdep.c
sys/powerpc/powerpc/pmap_dispatch.c
sys/riscv/riscv/minidump_machdep.c
sys/vm/vm_dumpset.h