From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4354415667D for ; Mon, 8 Sep 2025 23:02:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757372552; cv=none; b=Vpu2vtuREHEYbMvsKKjX8s82xakBXDLlWZRCOczJAfGBkytX9tXNKSHcU/m0cUHSLgOkqJ2x/G8lpp0pByGQuA27AsqlPax730fgCUroavBgqI/UoSTgeMDFw+bUpeTpFOUZltwinolfGu+Qsj1hWd+NbiEOQilUOMY8SkO/iCo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757372552; c=relaxed/simple; bh=39cOKejKFBiVWAHGSmx8a6NvMGdQ46qHekmb9D0XkM8=; h=Date:To:From:Subject:Message-Id; b=juJUbzXEZtP0k6tmaxVZrYCtaXyVScsKSFXvAZIrg96putCU6NXzZfMIvdjPzFiQNunHhJsh4TfHRI92WyyQGfLESmQMShGdzFtNkg10lic4UBB+HJdm+oHBaotRhubv6yfX51nCV4q8iru/9X6bcOwRyyNQUYF0JAvPdxy3D7k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=qaqJ79xx; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="qaqJ79xx" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AFAABC4CEF1; Mon, 8 Sep 2025 23:02:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1757372551; bh=39cOKejKFBiVWAHGSmx8a6NvMGdQ46qHekmb9D0XkM8=; h=Date:To:From:Subject:From; b=qaqJ79xxDqsLjKC5YYbHOSzxjhW92k+JLOuatYPaYRv0fBt6DeCcTKabOIuHE025u rnvrWWGRA+SATq76gJSZf57KjCKW/uMVdrvTpBDap58xfSeQetnYooYfYj+tqxb3H7 fAmJQ7f1QQ1ZyaQKplCmecJfOICge4yoPHNJesKs= Date: Mon, 08 Sep 2025 16:02:31 -0700 To: mm-commits@vger.kernel.org,swboyd@chromium.org,quic_eberman@quicinc.com,luca.ceresoli@bootlin.com,leitao@debian.org,cmllamas@google.com,matttbe@kernel.org,akpm@linux-foundation.org From: Andrew Morton Subject: + scripts-decode_stacktracesh-symbol-avoid-trailing-whitespaces.patch added to mm-new branch Message-Id: <20250908230231.AFAABC4CEF1@smtp.kernel.org> Precedence: bulk X-Mailing-List: mm-commits@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: The patch titled Subject: scripts/decode_stacktrace.sh: symbol: avoid trailing whitespaces has been added to the -mm mm-new branch. Its filename is scripts-decode_stacktracesh-symbol-avoid-trailing-whitespaces.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/scripts-decode_stacktracesh-symbol-avoid-trailing-whitespaces.patch This patch will later appear in the mm-new branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm Note, mm-new is a provisional staging ground for work-in-progress patches, and acceptance into mm-new is a notification for others take notice and to finish up reviews. Please do not hesitate to respond to review feedback and post updated versions to replace or incrementally fixup patches in mm-new. 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 via the mm-everything branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there every 2-3 working days ------------------------------------------------------ From: "Matthieu Baerts (NGI0)" Subject: scripts/decode_stacktrace.sh: symbol: avoid trailing whitespaces Date: Mon, 08 Sep 2025 17:41:57 +0200 A few patches slightly improving the output generated by decode_stacktrace.sh. This patch (of 3): Lines having a symbol to decode might not always have info after this symbol. It means ${info_str} might not be set, but it will always be printed after a space, causing trailing whitespaces. That's a detail, but when the output is opened with an editor marking these trailing whitespaces, that's a bit disturbing. It is easy to remove them by printing this variable with a space only if it is set. While at it, do the same with ${module} and print everything in one line. Link: https://lkml.kernel.org/r/20250908-decode_strace_indent-v1-0-28e5e4758080@kernel.org Link: https://lkml.kernel.org/r/20250908-decode_strace_indent-v1-1-28e5e4758080@kernel.org Signed-off-by: Matthieu Baerts (NGI0) Reviewed-by: Carlos Llamas Cc: Breno Leitao Cc: Carlos Llamas Cc: Elliot Berman Cc: Luca Ceresoli Cc: Stephen Boyd Signed-off-by: Andrew Morton --- scripts/decode_stacktrace.sh | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) --- a/scripts/decode_stacktrace.sh~scripts-decode_stacktracesh-symbol-avoid-trailing-whitespaces +++ a/scripts/decode_stacktrace.sh @@ -323,12 +323,7 @@ handle_line() { parse_symbol # modifies $symbol # Add up the line number to the symbol - if [[ -z ${module} ]] - then - echo "${words[@]}" "$symbol ${info_str}" - else - echo "${words[@]}" "$symbol $module ${info_str}" - fi + echo "${words[@]}" "${symbol}${module:+ ${module}}${info_str:+ ${info_str}}" } while read line; do _ Patches currently in -mm which might be from matttbe@kernel.org are scripts-decode_stacktracesh-symbol-avoid-trailing-whitespaces.patch scripts-decode_stacktracesh-symbol-preserve-alignment.patch scripts-decode_stacktracesh-code-preserve-alignment.patch