[merged] scripts-decode_stacktrace-only-strip-base-path-when-a-prefix-of-the-path.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     Subject: scripts/decode_stacktrace: only strip base path when a prefix of the path
has been removed from the -mm tree.  Its filename was
     scripts-decode_stacktrace-only-strip-base-path-when-a-prefix-of-the-path.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
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>
---


--- 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





[Index of Archives]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux