diff options
author | Petr Tesarik <ptesarik@suse.cz> | 2012-10-31 16:12:47 +0900 |
---|---|---|
committer | Atsushi Kumagai <kumagai-atsushi@mxc.nes.nec.co.jp> | 2013-02-06 13:40:56 +0900 |
commit | 0aff0e5174d0708bf1bfb039ab863e1fea8a1029 (patch) | |
tree | 1e71b111c5594b027f0aafbbdf7819ba45985db9 /sadump_info.h | |
parent | 5d83960cad23b2e7b9012d85d2cbd183ef026837 (diff) |
[PATCH] keep dumpfile pages in a cache.
Add a simple cache for pages read from the dumpfile.
This is a big win if we read consecutive data from one page, e.g.
page descriptors, or even page table entries.
Note that makedumpfile now always reads a complete page. This was already
the case with kdump-compressed and sadump formats, but makedumpfile was
throwing most of the data away. For the kdump-compressed case, we may
actually save a lot of decompression, too.
I tried to keep the cache small to minimize memory footprint, but it should
be big enough to hold all pages to do 4-level paging plus some data. This
is needed e.g. for vmalloc areas or Xen page frame table data, which are not
contiguous in physical memory.
Signed-off-by: Petr Tesarik <ptesarik@suse.cz>
Diffstat (limited to 'sadump_info.h')
-rw-r--r-- | sadump_info.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sadump_info.h b/sadump_info.h index c4824be..766f35d 100644 --- a/sadump_info.h +++ b/sadump_info.h @@ -43,7 +43,7 @@ int sadump_initialize_bitmap_memory(void); int sadump_num_online_cpus(void); int sadump_set_timestamp(struct timeval *ts); unsigned long long sadump_get_max_mapnr(void); -int readpmem_sadump(unsigned long long paddr, void *bufptr, size_t size); +int readpage_sadump(unsigned long long paddr, void *bufptr); int sadump_check_debug_info(void); int sadump_generate_vmcoreinfo_from_vmlinux(size_t *vmcoreinfo_size); int sadump_generate_elf_note_from_dumpfile(void); |