The patch titled Subject: scripts/decode_stacktrace: only strip base path when a prefix of the path has been added to the -mm tree. Its filename is scripts-decode_stacktrace-only-strip-base-path-when-a-prefix-of-the-path.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/scripts-decode_stacktrace-only-strip-base-path-when-a-prefix-of-the-path.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/scripts-decode_stacktrace-only-strip-base-path-when-a-prefix-of-the-path.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Marc Zyngier <marc.zyngier@xxxxxxx> Subject: 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/20181210174659.31054-3-marc.zyngier@xxxxxxx Signed-off-by: Marc Zyngier <marc.zyngier@xxxxxxx> Cc: Will Deacon <will.deacon@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- scripts/decode_stacktrace.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/scripts/decode_stacktrace.sh~scripts-decode_stacktrace-only-strip-base-path-when-a-prefix-of-the-path +++ a/scripts/decode_stacktrace.sh @@ -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'/' '} _ Patches currently in -mm which might be from marc.zyngier@xxxxxxx are scripts-decodecode-set-arch-when-running-natively-on-arm-arm64.patch scripts-decode_stacktrace-only-strip-base-path-when-a-prefix-of-the-path.patch