diff options
author | Pratyush Anand <panand@redhat.com> | 2017-03-02 17:37:11 +0900 |
---|---|---|
committer | Atsushi Kumagai <ats-kumagai@wm.jp.nec.com> | 2017-03-03 13:52:27 +0900 |
commit | 8e2834bac4f62da3894da297f083068431be6d80 (patch) | |
tree | b069e9ffc6685ba21f3321895ff22f68e2f4ef7b /makedumpfile.c | |
parent | 4b0bed3523a5f6c2c428d9dab3d27d4572207d52 (diff) |
[PATCH v3 2/7] initial(): call cache_init() a bit early
Call cache_init() before get_kcore_dump_loads(), because latter uses
cache_search().
Call path is like this :
get_kcore_dump_loads() -> process_dump_load() -> vaddr_to_paddr() ->
vtop4_x86_64() -> readmem() -> cache_search()
Signed-off-by: Pratyush Anand <panand@redhat.com>
Diffstat (limited to 'makedumpfile.c')
-rw-r--r-- | makedumpfile.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/makedumpfile.c b/makedumpfile.c index 6942047..3b8e981 100644 --- a/makedumpfile.c +++ b/makedumpfile.c @@ -3878,6 +3878,9 @@ initial(void) if (!get_value_for_old_linux()) return FALSE; + if (!is_xen_memory() && !cache_init()) + return FALSE; + if (info->flag_mem_usage && !get_kcore_dump_loads()) return FALSE; @@ -4000,9 +4003,6 @@ out: } } - if (!is_xen_memory() && !cache_init()) - return FALSE; - if (debug_info && !get_machdep_info()) return FALSE; |