kallsyms: expand symbol name into comment for debugging
authorArnd Bergmann <arnd@arndb.de>
Mon, 6 Mar 2023 10:14:51 +0000 (11:14 +0100)
committerMasahiro Yamada <masahiroy@kernel.org>
Mon, 17 Apr 2023 02:03:56 +0000 (11:03 +0900)
commitbea5b74504742f1b51b815bcaf9a70bddbc49ce3
treeebcb915b357f5f6000f3982030d33380327bcd80
parent6a8f57ae2eb07ab39a6f0ccad60c760743051026
kallsyms: expand symbol name into comment for debugging

The assembler output of kallsyms.c is not meant for people to understand,
and is generally not helpful when debugging "Inconsistent kallsyms data"
warnings. I have previously struggled with these, but found it helpful
to list which symbols changed between the first and second pass in the
.tmp_vmlinux.kallsyms*.S files.

As this file is preprocessed, it's possible to add a C-style multiline
comment with the full type/name tuple.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/kallsyms.c