Skip to content

Commit f09bddb

Browse files
brenns10akpm00
authored andcommitted
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: 5fd8fea ("vmcoreinfo: include kallsyms symbols") Signed-off-by: Stephen Brennan <stephen.s.brennan@oracle.com> Cc: Baoquan He <bhe@redhat.com> Cc: Dave Young <dyoung@redhat.com> Cc: Vivek Goyal <vgoyal@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
1 parent 6c26d17 commit f09bddb

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

kernel/crash_core.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,7 @@ static int __init crash_save_vmcoreinfo_init(void)
494494

495495
#ifdef CONFIG_KALLSYMS
496496
VMCOREINFO_SYMBOL(kallsyms_names);
497+
VMCOREINFO_SYMBOL(kallsyms_num_syms);
497498
VMCOREINFO_SYMBOL(kallsyms_token_table);
498499
VMCOREINFO_SYMBOL(kallsyms_token_index);
499500
#ifdef CONFIG_KALLSYMS_BASE_RELATIVE

0 commit comments

Comments
 (0)