diff options
author | Marc Zyngier <marc.zyngier@arm.com> | 2018-12-28 00:31:25 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-02-20 10:09:03 +0100 |
commit | c9b6ec4adc4979ef3681fd2242a378d634aeb093 (patch) | |
tree | dd085dd3f1f4c06417b158c08dc35df3ad445eea /fs | |
parent | 3896d308f19cba0d4c8028f33467a1b7a6652eff (diff) | |
download | linux-stable-c9b6ec4adc4979ef3681fd2242a378d634aeb093.tar.gz linux-stable-c9b6ec4adc4979ef3681fd2242a378d634aeb093.tar.bz2 linux-stable-c9b6ec4adc4979ef3681fd2242a378d634aeb093.zip |
scripts/decode_stacktrace: only strip base path when a prefix of the path
[ Upstream commit 67a28de47faa83585dd644bd4c31e5a1d9346c50 ]
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/20181210174659.31054-3-marc.zyngier@arm.com
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions