mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-28 21:02:43 +01:00
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]>
This commit is contained in:
1 parent
c5cfb62f2b
commit
67a28de47f
1 file changed
+1
-1
@@ -78,7 +78,7 @@ parse_symbol() {
|
||||
fi
|
||||
|
||||
# Strip out the base of the path
|
||||
code=${code//$basepath/""}
|
||||
code=${code//^$basepath/""}
|
||||
|
||||
# In the case of inlines, move everything to same line
|
||||
code=${code//$'\n'/' '}
|
||||
|
||||
Reference in new issue
Block a user