mm-commits Archive on
 help / color / Atom feed
* [merged] scripts-decode_stacktrace-strip-basepath-from-all-paths.patch removed from -mm tree
@ 2020-07-24 23:38 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2020-07-24 23:38 UTC (permalink / raw)
  To: drinkcat, jslaby, mm-commits, pihsun, sashal, shik, swboyd

The patch titled
     Subject: scripts/decode_stacktrace: strip basepath from all paths
has been removed from the -mm tree.  Its filename was

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

From: Pi-Hsun Shih <>
Subject: scripts/decode_stacktrace: strip basepath from all paths

Currently the basepath is removed only from the beginning of the string. 
When the symbol is inlined and there's multiple line outputs of addr2line,
only the first line would have basepath removed.

Change to remove the basepath prefix from all lines.

Fixes: 31013836a71e ("scripts/decode_stacktrace: match basepath using shell prefix operator, not regex")
Signed-off-by: Pi-Hsun Shih <>
Signed-off-by: Shik Chen <>
Co-developed-by: Shik Chen <>
Reviewed-by: Stephen Boyd <>
Cc: Sasha Levin <>
Cc: Nicolas Boichat <>
Cc: Jiri Slaby <>
Signed-off-by: Andrew Morton <>

 scripts/ |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- a/scripts/
+++ a/scripts/
@@ -87,8 +87,8 @@ parse_symbol() {
-	# Strip out the base of the path
-	code=${code#$basepath/}
+	# Strip out the base of the path on each line
+	code=$(while read -r line; do echo "${line#$basepath/}"; done <<< "$code")
 	# In the case of inlines, move everything to same line
 	code=${code//$'\n'/' '}

Patches currently in -mm which might be from are

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-24 23:38 [merged] scripts-decode_stacktrace-strip-basepath-from-all-paths.patch removed from -mm tree akpm

mm-commits Archive on

Archives are clonable:
	git clone --mirror mm-commits/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 mm-commits mm-commits/ \
	public-inbox-index mm-commits

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone