]> git.baikalelectronics.ru Git - kernel.git/commit
scripts/decode_stacktrace.sh: handle symbols in modules
authorKonstantin Khlebnikov <koct9i@gmail.com>
Fri, 20 May 2016 00:09:11 +0000 (17:09 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 20 May 2016 02:12:14 +0000 (19:12 -0700)
commit1abd5773daf6497ea3c742d50549d613f87ff5c3
tree2ba2bc37011138ef9dffb74a09a22d867d834c7c
parentddf1e556d7d270e3cbe78a9dbdf21d1a956e09bd
scripts/decode_stacktrace.sh: handle symbols in modules

scripts/decode_stacktrace.sh presently displays module symbols as

func+0x0ff/0x5153 [module]

Add a third argument: the pathname of a directory where the script
should look for the file module.ko so that the output appears as

func (foo/bar.c:123) module

Without the argument or if the module file isn't found the script prints
such symbols as is without decoding.

Signed-off-by: Konstantin Khlebnikov <koct9i@gmail.com>
Cc: Sasha Levin <sasha.levin@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/decode_stacktrace.sh