From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757480AbcK2OOr (ORCPT ); Tue, 29 Nov 2016 09:14:47 -0500 Received: from terminus.zytor.com ([198.137.202.10]:59690 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756308AbcK2OOh (ORCPT ); Tue, 29 Nov 2016 09:14:37 -0500 Date: Tue, 29 Nov 2016 05:24:53 -0800 From: tip-bot for Josh Poimboeuf Message-ID: Cc: jpoimboe@redhat.com, alexander.levin@verizon.com, linux-kernel@vger.kernel.org, kirill@shutemov.name, koct9i@gmail.com, tglx@linutronix.de, peterz@infradead.org, hpa@zytor.com, torvalds@linux-foundation.org, mingo@kernel.org Reply-To: alexander.levin@verizon.com, jpoimboe@redhat.com, peterz@infradead.org, tglx@linutronix.de, koct9i@gmail.com, kirill@shutemov.name, linux-kernel@vger.kernel.org, torvalds@linux-foundation.org, hpa@zytor.com, mingo@kernel.org In-Reply-To: <20161128230635.4n2ofgawltgexgcg@treble> References: <20161128230635.4n2ofgawltgexgcg@treble> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/asm] scripts/decode_stacktrace.sh: Fix address line detection on x86 Git-Commit-ID: 53938ee427bf27525a63721b7e25d86b8f31f161 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: 53938ee427bf27525a63721b7e25d86b8f31f161 Gitweb: http://git.kernel.org/tip/53938ee427bf27525a63721b7e25d86b8f31f161 Author: Josh Poimboeuf AuthorDate: Mon, 28 Nov 2016 17:06:35 -0600 Committer: Ingo Molnar CommitDate: Tue, 29 Nov 2016 14:19:50 +0100 scripts/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?