Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp910521imm; Wed, 1 Aug 2018 07:17:03 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcWyGpqEn9RUrbjDEPtGdEKD+vbTAGG6upPv+fkxNVrWZ7R+AXc3RrY6W9N9Da4NJ50G1gP X-Received: by 2002:a17:902:9a4b:: with SMTP id x11-v6mr24518424plv.342.1533133023915; Wed, 01 Aug 2018 07:17:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533133023; cv=none; d=google.com; s=arc-20160816; b=HViBxc4AKk7sCZ7qUkvUmi/j2h6iPBjGKCQK6sUJx7E7FpfrBaY5xPIfNMYETtde7F qSYWK+4E4wQpQHO24ZGKPN/Mx4208FFJBuaVuultdYRAtPW1D18EjVDAXkrIvZFCx/Px yKG/kMabsJxpnsumaCwfgpOnaHDM27+9RH2ROdrHrBykTzbpJbX0WFINNqu2uHnb/Nuo wmhw6tkd2f7drnBIYzoIeP4iif3PR52kvrOD4/FfzvDwE7H0PmVB2L6c4hPixvl2aWJL 0/jMfNFBIqx5Cbnh1PWjxmW8KMF0rxxubaW+Fd3xVw1BIh1kIsZmw4yfX7VObzMc7iQt 7WFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:references:in-reply-to:subject:cc:to:from :arc-authentication-results; bh=7tYm5n6JOowP3SJDyeT5al95MAb3T1v5XS7p7zbsNSc=; b=uk2pTcw4A39lI2eDJN2mi4rhiFZZO3h9YS4vNYE4s2IKtBLMdtSBtIwrYyBCLwlb7g jE1iO6z1tWWEBxSyp1fmHWprtDrMKBPRp3MMr+PfEGp67m01boyL4e2Wv+IQy5bY6izS Zv6wDl6+rzTcuqIEKNMHKK8uWC9Xa3yJ18i5gzthKKzeZl+72Td6dzwTuVpIpR0Vrqcb cHgd++n7JNmZ8SDb0XQ+bmYyYBjF7jpaD85MXIEqY3aeyieSbvupMUo8kG1sWGs/lucs HDdMTc/0z5rnB83O9DvI6nscM5sJjkLKhAvC4skHbzLtEmgjxhL7LtjT9zjabukDwnhu nVwA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i4-v6si16343083pgd.657.2018.08.01.07.16.48; Wed, 01 Aug 2018 07:17:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389528AbeHAQAu convert rfc822-to-8bit (ORCPT + 99 others); Wed, 1 Aug 2018 12:00:50 -0400 Received: from ozlabs.org ([203.11.71.1]:42461 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389226AbeHAQAu (ORCPT ); Wed, 1 Aug 2018 12:00:50 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPSA id 41gb0p2FHBz9s3q; Thu, 2 Aug 2018 00:14:50 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au 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 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Christophe LEROY writes: > Le 31/07/2018 à 16:50, Murilo Opsfelder Araujo a écrit : >> Remove "Instruction dump:" line by adding a prefix to display current->comm >> and current->pid, along with the instructions dump. >> >> The prefix can serve as a glue that links the instructions dump to its >> originator, allowing messages to be interleaved in the logs. >> >> Before this patch, a page fault looked like: >> >> pandafault[10524]: segfault (11) at 100007d0 nip 1000061c lr 7fffbd295100 code 2 in pandafault[10000000+10000] >> Instruction dump: >> 4bfffeec 4bfffee8 3c401002 38427f00 fbe1fff8 f821ffc1 7c3f0b78 3d22fffe >> 392988d0 f93f0020 e93f0020 39400048 <99490000> 39200000 7d234b78 383f0040 >> >> After this patch, it looks like: >> >> pandafault[10850]: segfault (11) at 100007d0 nip 1000061c lr 7fff9f3e5100 code 2 in pandafault[10000000+10000] >> pandafault[10850]: code: 4bfffeec 4bfffee8 3c401002 38427f00 fbe1fff8 f821ffc1 7c3f0b78 3d22fffe >> pandafault[10850]: code: 392988d0 f93f0020 e93f0020 39400048 <99490000> 39200000 7d234b78 383f0040 >> >> Signed-off-by: Murilo Opsfelder Araujo > > Does the script scripts/decode_stacktrace.sh also works with this format > change ? Did it work before? I've never used it. Would be great if it did work though. cheers