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/[email protected] Fixes: 5fd8fea ("vmcoreinfo: include kallsyms symbols") Signed-off-by: Stephen Brennan <[email protected]> Cc: Baoquan He <[email protected]> Cc: Dave Young <[email protected]> Cc: Vivek Goyal <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 6c26d17 commit f09bddb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)