summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorBaoquan He <bhe@redhat.com>2014-09-01 12:17:47 +0900
committerAtsushi Kumagai <kumagai-atsushi@mxc.nes.nec.co.jp>2014-09-02 10:13:38 +0900
commit61087227ef4b3c698c6466a11dd06203c21f0de8 (patch)
treef1a9e5976f6533cb93b63a3ffedf16b260999c07 /arch
parentb3e8ea79f283b1061c8a9aecbfcd10da9ecb8dc0 (diff)
[PATCH v6 5/8] Prepare the dump loads for kcore analysis.
In kcore, only "System Ram" and "kernel text" program segments are needed. And to be more precise, exclude the crashkernel memory range. Signed-off-by: Baoquan He <bhe@redhat.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86_64.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86_64.c b/arch/x86_64.c
index 771d457..4788f55 100644
--- a/arch/x86_64.c
+++ b/arch/x86_64.c
@@ -20,7 +20,7 @@
#include "../makedumpfile.h"
int
-is_vmalloc_addr(ulong vaddr)
+is_vmalloc_addr_x86_64(ulong vaddr)
{
/*
* vmalloc, virtual memmap, and module space as VMALLOC space.
@@ -56,7 +56,7 @@ get_phys_base_x86_64(void)
for (i = 0; get_pt_load(i, &phys_start, NULL, &virt_start, NULL); i++) {
if ((virt_start >= __START_KERNEL_map) &&
- !(is_vmalloc_addr(virt_start))) {
+ !(is_vmalloc_addr_x86_64(virt_start))) {
info->phys_base = phys_start -
(virt_start & ~(__START_KERNEL_map));
@@ -281,7 +281,7 @@ vaddr_to_paddr_x86_64(unsigned long vaddr)
else
phys_base = 0;
- if (is_vmalloc_addr(vaddr)) {
+ if (is_vmalloc_addr_x86_64(vaddr)) {
if ((paddr = vtop4_x86_64(vaddr)) == NOT_PADDR) {
ERRMSG("Can't convert a virtual address(%lx) to " \
"physical address.\n", vaddr);