/proc/module: use the same logic as /proc/kallsyms for address exposure
authorLinus Torvalds <torvalds@linux-foundation.org>
Mon, 13 Nov 2017 02:44:23 +0000 (18:44 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 13 Nov 2017 03:01:23 +0000 (19:01 -0800)
commit516fb7f2e73dcc303fb97fc3593209fcacf2d982
tree9ce9a22e13c85739215c9ceed067a15cd3210cb5
parent277642dcca765a1955d4c753a5a315ff7f2eb09d
/proc/module: use the same logic as /proc/kallsyms for address exposure

The (alleged) users of the module addresses are the same: kernel
profiling.

So just expose the same helper and format macros, and unify the logic.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/kallsyms.h
kernel/kallsyms.c
kernel/module.c