From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756232AbcK2HON (ORCPT ); Tue, 29 Nov 2016 02:14:13 -0500 Received: from terminus.zytor.com ([198.137.202.10]:46240 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753347AbcK2HOE (ORCPT ); Tue, 29 Nov 2016 02:14:04 -0500 Date: Mon, 28 Nov 2016 23:13:15 -0800 From: tip-bot for Josh Poimboeuf Message-ID: Cc: peterz@infradead.org, mingo@kernel.org, koct9i@gmail.com, torvalds@linux-foundation.org, alexander.levin@verizon.com, linux-kernel@vger.kernel.org, jpoimboe@redhat.com, kirill@shutemov.name, hpa@zytor.com, tglx@linutronix.de Reply-To: koct9i@gmail.com, mingo@kernel.org, peterz@infradead.org, alexander.levin@verizon.com, torvalds@linux-foundation.org, kirill@shutemov.name, linux-kernel@vger.kernel.org, jpoimboe@redhat.com, hpa@zytor.com, tglx@linutronix.de In-Reply-To: <20161128230635.4n2ofgawltgexgcg@treble> References: <20161128230635.4n2ofgawltgexgcg@treble> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/urgent] tools/decode_stacktrace.sh: Fix address line detection on x86 Git-Commit-ID: 8e8d8725d46d93ceffd3e708d905bc101a1905b5 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 8e8d8725d46d93ceffd3e708d905bc101a1905b5 Gitweb: http://git.kernel.org/tip/8e8d8725d46d93ceffd3e708d905bc101a1905b5 Author: Josh Poimboeuf AuthorDate: Mon, 28 Nov 2016 17:06:35 -0600 Committer: Ingo Molnar CommitDate: Tue, 29 Nov 2016 08:10:05 +0100 tools/decode_stacktrace.sh: Fix address line detection on x86 Kirill reported that the decode_stacktrace.sh script was broken by the following commit: bb5e5ce545f2 ("x86/dumpstack: Remove kernel text addresses from stack dump") Fix it by updating the per-line absolute address check to also check for function-based address lines like the following: write_sysrq_trigger+0x51/0x60 I didn't remove the check for absolute addresses because it's still needed for ARM. Reported-by: Kirill A. Shutemov Tested-by: Kirill A. Shutemov Signed-off-by: Josh Poimboeuf Cc: Konstantin Khlebnikov Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Sasha Levin Cc: Thomas Gleixner Fixes: bb5e5ce545f2 ("x86/dumpstack: Remove kernel text addresses from stack dump") Link: http://lkml.kernel.org/r/20161128230635.4n2ofgawltgexgcg@treble Signed-off-by: Ingo Molnar --- scripts/decode_stacktrace.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/decode_stacktrace.sh b/scripts/decode_stacktrace.sh index c332684..5206d99 100755 --- a/scripts/decode_stacktrace.sh +++ b/scripts/decode_stacktrace.sh @@ -139,7 +139,8 @@ handle_line() { while read line; do # Let's see if we have an address in the line - if [[ $line =~ \[\<([^]]+)\>\] ]]; then + if [[ $line =~ \[\<([^]]+)\>\] ]] || + [[ $line =~ [^+\ ]+\+0x[0-9a-f]+/0x[0-9a-f]+ ]]; then # Translate address to line numbers handle_line "$line" # Is it a code line?