]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] Create kallsyms_lookup_size_offset()
authorFranck Bui-Huu <vagabon.xyz@gmail.com>
Tue, 3 Oct 2006 08:13:48 +0000 (01:13 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 3 Oct 2006 15:03:41 +0000 (08:03 -0700)
commita6c5ff1812de2b823b26dd282410d7bfb8517a5a
treee15925251553152f6859c354e34afe3adfcd1c64
parentbc4d522ae261e71d2a65f60f969f2c6a22bd1634
[PATCH] Create kallsyms_lookup_size_offset()

Some uses of kallsyms_lookup() do not need to find out the name of a symbol
and its module's name it belongs.  This is specially true in arch specific
code, which needs to unwind the stack to show the back trace during oops
(mips is an example).  In this specific case, we just need to retreive the
function's size and the offset of the active intruction inside it.

Adds a new entry "kallsyms_lookup_size_offset()" This new entry does
exactly the same as kallsyms_lookup() but does not require any buffers to
store any names.

It returns 0 if it fails otherwise 1.

Signed-off-by: Franck Bui-Huu <vagabon.xyz@gmail.com>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/linux/kallsyms.h
kernel/kallsyms.c
kernel/module.c