]> www.infradead.org Git - users/jedix/linux-maple.git/commit
kallsyms: unbreak kallmodsyms after CONFIG_KALLMODSYMS addition
authorNick Alcock <nick.alcock@oracle.com>
Thu, 3 Sep 2015 15:42:09 +0000 (16:42 +0100)
committerNick Alcock <nick.alcock@oracle.com>
Fri, 4 Sep 2015 21:40:00 +0000 (22:40 +0100)
commit8e87a541905caf7684725e92a1ba5a53395e8593
tree6c16ff1f986c2cb57aa18825c841d5dbe6a8d3bd
parenteef978d1b999894e00967de349100fc5e54ec671
kallsyms: unbreak kallmodsyms after CONFIG_KALLMODSYMS addition

The recent addition of CONFIG_KALLMODSYMS In 28df3b99a7 had the effect
of entirely disabling all module info in /proc/kallmodsyms, thus
breaking all module-specific symbol lookups from DTrace.

This is because you can't use a CONFIG_ symbol in a HOSTCC-compiled
program without including autoconf.h by hand, and we weren't, so
scripts/kallsyms.c always acted as if CONFIG_KALLMODSYMS was turned
off and didn't populate the kallsyms_modules or kallsyms_symbol_modules
tables.

(Including autoconf.h in this context is safe, because kallsyms.c never
gets compiled until after some *config target has run.  Other build
tools in a similar position, such as modpost, already do this.)

Orabug: 21539840
Signed-off-by: Nick Alcock <nick.alcock@oracle.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
Acked-by: Kris Van Hees <kris.van.hees@oracle.com>
scripts/kallsyms.c