diff options
author | Russell King <rmk@arm.linux.org.uk> | 2016-06-06 18:01:13 +0100 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2016-06-08 09:24:10 +0900 |
commit | fbee2f01cddffebc347e80d99ce0faf418e163b4 (patch) | |
tree | 2bb25b5a531a68775e394b5d9b9253249e94e168 | |
parent | 921a8d1d5bb2e0b181f7a9471595520e3a325c81 (diff) | |
download | kexec-tools-fbee2f01cddffebc347e80d99ce0faf418e163b4.tar.gz |
arm: add debug of reserved and coredump memory ranges
Add debug of the reserved and coredump memory ranges for validation.
Reviewed-by: Pratyush Anand <panand@redhat.com>
Signed-off-by: Russell King <rmk@arm.linux.org.uk>
Signed-off-by: Simon Horman <horms@verge.net.au>
-rw-r--r-- | kexec/arch/arm/crashdump-arm.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/kexec/arch/arm/crashdump-arm.c b/kexec/arch/arm/crashdump-arm.c index 25fdbe9..2dc8846 100644 --- a/kexec/arch/arm/crashdump-arm.c +++ b/kexec/arch/arm/crashdump-arm.c @@ -158,6 +158,10 @@ static int crash_get_memory_ranges(void) return -1; } + dbgprint_mem_range("Reserved memory ranges", + crash_reserved_rgns.ranges, + crash_reserved_rgns.size); + /* * Exclude all reserved memory from the usable memory regions. * We want to avoid dumping the crashkernel region itself. Note @@ -179,6 +183,9 @@ static int crash_get_memory_ranges(void) */ mem_regions_sort(&usablemem_rgns); + dbgprint_mem_range("Coredump memory ranges", + usablemem_rgns.ranges, usablemem_rgns.size); + return 0; } |