]> Git Repo - linux.git/commit
scripts/decode_stacktrace: only strip base path when a prefix of the path
authorMarc Zyngier <[email protected]>
Fri, 28 Dec 2018 08:31:25 +0000 (00:31 -0800)
committerLinus Torvalds <[email protected]>
Fri, 28 Dec 2018 20:11:44 +0000 (12:11 -0800)
commit67a28de47faa83585dd644bd4c31e5a1d9346c50
tree0ccdb0fb605697cd5627ad17cb18caebd4e013d4
parentc5cfb62f2bdf51c71ab4b8b33271beab34096c71
scripts/decode_stacktrace: only strip base path when a prefix of the path

Running something like:

decodecode vmlinux .

leads to interested results where not only the leading "." gets stripped
from the displayed paths, but also anywhere in the string, displaying
something like:

kvm_vcpu_check_block (arch/arm64/kvm/virt/kvm/kvm_mainc:2141)

which doesn't help further processing.

Fix it by only stripping the base path if it is a prefix of the path.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Marc Zyngier <[email protected]>
Cc: Will Deacon <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
scripts/decode_stacktrace.sh
This page took 0.052077 seconds and 4 git commands to generate.