X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=kernel%2Fscripts%2Fdecode_stacktrace.sh;h=00d6d53c2681dac3ce2f736baff7cbc177825b0e;hb=e09b41010ba33a20a87472ee821fa407a5b8da36;hp=515c4c00e957cae89febefc38533415490ae88c8;hpb=f93b97fd65072de626c074dbe099a1fff05ce060;p=kvmfornfv.git diff --git a/kernel/scripts/decode_stacktrace.sh b/kernel/scripts/decode_stacktrace.sh index 515c4c00e..00d6d53c2 100755 --- a/kernel/scripts/decode_stacktrace.sh +++ b/kernel/scripts/decode_stacktrace.sh @@ -14,11 +14,14 @@ declare -A cache 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 + # Remove the englobing parenthesis + symbol=${symbol#\(} + symbol=${symbol%\)} # Strip the symbol name so that we could look it up local name=${symbol%+*}