From: Stephen Brennan Date: Mon, 8 Aug 2022 20:54:10 +0000 (-0700) Subject: vmcoreinfo: add kallsyms_num_syms symbol X-Git-Tag: v6.1-rc5~514^2~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f09bddbd86619bf6213c96142a3b6b6a84818798;p=platform%2Fkernel%2Flinux-starfive.git vmcoreinfo: add kallsyms_num_syms symbol The rest of the kallsyms symbols are useless without knowing the number of symbols in the table. In an earlier patch, I somehow dropped the kallsyms_num_syms symbol, so add it back in. Link: https://lkml.kernel.org/r/20220808205410.18590-1-stephen.s.brennan@oracle.com Fixes: 5fd8fea935a1 ("vmcoreinfo: include kallsyms symbols") Signed-off-by: Stephen Brennan Cc: Baoquan He Cc: Dave Young Cc: Vivek Goyal Signed-off-by: Andrew Morton --- diff --git a/kernel/crash_core.c b/kernel/crash_core.c index 07b26df..a0eb4d5 100644 --- a/kernel/crash_core.c +++ b/kernel/crash_core.c @@ -494,6 +494,7 @@ static int __init crash_save_vmcoreinfo_init(void) #ifdef CONFIG_KALLSYMS VMCOREINFO_SYMBOL(kallsyms_names); + VMCOREINFO_SYMBOL(kallsyms_num_syms); VMCOREINFO_SYMBOL(kallsyms_token_table); VMCOREINFO_SYMBOL(kallsyms_token_index); #ifdef CONFIG_KALLSYMS_BASE_RELATIVE