qemu-e2k/contrib/elf2dmp
Viktor Prutyanov df7a75564e elf2dmp: use Linux mmap with MAP_NORESERVE when possible
Glib's g_mapped_file_new maps file with PROT_READ|PROT_WRITE and
MAP_PRIVATE. This leads to premature physical memory allocation of dump
file size on Linux hosts and may fail. On Linux, mapping the file with
MAP_NORESERVE limits the allocation by available memory.

Signed-off-by: Viktor Prutyanov <viktor@daynix.com>
Reviewed-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Message-id: 20230915170153.10959-5-viktor@daynix.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2023-09-21 16:13:54 +01:00
..
addrspace.c elf2dmp: introduce physical block alignment 2023-09-21 16:07:15 +01:00
addrspace.h elf2dmp: introduce physical block alignment 2023-09-21 16:07:15 +01:00
download.c
download.h
err.h
kdbg.h
main.c elf2dmp: introduce merging of physical memory runs 2023-09-21 16:07:15 +01:00
meson.build
pdb.c
pdb.h
pe.h contrib/elf2dmp: add PE name check and Windows Server 2022 support 2023-03-21 13:19:07 +00:00
qemu_elf.c elf2dmp: use Linux mmap with MAP_NORESERVE when possible 2023-09-21 16:13:54 +01:00
qemu_elf.h elf2dmp: use Linux mmap with MAP_NORESERVE when possible 2023-09-21 16:13:54 +01:00