projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'fix/rt5645' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie...
[firefly-linux-kernel-4.4.55.git]
/
scripts
/
decode_stacktrace.sh
diff --git
a/scripts/decode_stacktrace.sh
b/scripts/decode_stacktrace.sh
index 515c4c00e957cae89febefc38533415490ae88c8..00d6d53c2681dac3ce2f736baff7cbc177825b0e 100755
(executable)
--- a/
scripts/decode_stacktrace.sh
+++ b/
scripts/decode_stacktrace.sh
@@
-14,11
+14,14
@@
declare -A cache
parse_symbol() {
# The structure of symbol at this point is:
parse_symbol() {
# The structure of symbol at this point is:
- #
[name]+[offset]/[total length]
+ #
([name]+[offset]/[total length])
#
# For example:
# do_basic_setup+0x9c/0xbf
#
# For example:
# do_basic_setup+0x9c/0xbf
+ # Remove the englobing parenthesis
+ symbol=${symbol#\(}
+ symbol=${symbol%\)}
# Strip the symbol name so that we could look it up
local name=${symbol%+*}
# Strip the symbol name so that we could look it up
local name=${symbol%+*}