Return-Path: Received: from ozlabs.org (ozlabs.org [IPv6:2401:3900:2:1::2]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 41gb0q50wyzF10S for ; Thu, 2 Aug 2018 00:14:51 +1000 (AEST) From: Michael Ellerman To: Christophe LEROY , Murilo Opsfelder Araujo , linux-kernel@vger.kernel.org Cc: Alastair D'Silva , Andrew Donnellan , Balbir Singh , Benjamin Herrenschmidt , Cyril Bur , "Eric W . Biederman" , Joe Perches , Michael Neuling , Nicholas Piggin , Paul Mackerras , Simon Guo , Sukadev Bhattiprolu , "Tobin C . Harding" , linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH v3 9/9] powerpc/traps: Add line prefix in show_instructions() In-Reply-To: References: <20180731145020.14009-1-muriloo@linux.ibm.com> <20180731145020.14009-10-muriloo@linux.ibm.com> Date: Thu, 02 Aug 2018 00:14:49 +1000 Message-ID: <87ftzyfa1y.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Christophe LEROY writes: > Le 31/07/2018 =C3=A0 16:50, Murilo Opsfelder Araujo a =C3=A9crit=C2=A0: >> Remove "Instruction dump:" line by adding a prefix to display current->c= omm >> and current->pid, along with the instructions dump. >>=20 >> The prefix can serve as a glue that links the instructions dump to its >> originator, allowing messages to be interleaved in the logs. >>=20 >> Before this patch, a page fault looked like: >>=20 >> pandafault[10524]: segfault (11) at 100007d0 nip 1000061c lr 7fffbd29= 5100 code 2 in pandafault[10000000+10000] >> Instruction dump: >> 4bfffeec 4bfffee8 3c401002 38427f00 fbe1fff8 f821ffc1 7c3f0b78 3d22ff= fe >> 392988d0 f93f0020 e93f0020 39400048 <99490000> 39200000 7d234b78 383f= 0040 >>=20 >> After this patch, it looks like: >>=20 >> pandafault[10850]: segfault (11) at 100007d0 nip 1000061c lr 7fff9f3e= 5100 code 2 in pandafault[10000000+10000] >> pandafault[10850]: code: 4bfffeec 4bfffee8 3c401002 38427f00 fbe1fff8= f821ffc1 7c3f0b78 3d22fffe >> pandafault[10850]: code: 392988d0 f93f0020 e93f0020 39400048 <9949000= 0> 39200000 7d234b78 383f0040 >>=20 >> Signed-off-by: Murilo Opsfelder Araujo > > Does the script scripts/decode_stacktrace.sh also works with this format= =20 > change ? Did it work before? I've never used it. Would be great if it did work though. cheers