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)
commit310c6dd06a0b3c6e808067379cfb56c864e95ffc
tree2ba2bc37011138ef9dffb74a09a22d867d834c7c
parent8e4f70e21877297577dce13cca97599a5864a91f
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