Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967386AbcCRASb (ORCPT ); Thu, 17 Mar 2016 20:18:31 -0400 Received: from mail-db3on0090.outbound.protection.outlook.com ([157.55.234.90]:39168 "EHLO emea01-db3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751092AbcCRASV (ORCPT ); Thu, 17 Mar 2016 20:18:21 -0400 Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=mellanox.com; Subject: Re: [PATCH v2 1/4] nmi_backtrace: add more trigger_*_cpu_backtrace() methods To: , Peter Zijlstra References: <1458147733-29338-1-git-send-email-cmetcalf@mellanox.com> <1458147733-29338-2-git-send-email-cmetcalf@mellanox.com> <20160317193600.GY6344@twins.programming.kicks-ass.net> <20160317225557.GA4287@linux.vnet.ibm.com> CC: Russell King , Thomas Gleixner , Aaron Tomlin , Ingo Molnar , Andrew Morton , Daniel Thompson , , , From: Chris Metcalf Message-ID: <56EB4937.1010404@mellanox.com> Date: Thu, 17 Mar 2016 20:17:59 -0400 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.0 MIME-Version: 1.0 In-Reply-To: <20160317225557.GA4287@linux.vnet.ibm.com> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [173.76.23.146] X-ClientProxiedBy: DM2PR07CA0034.namprd07.prod.outlook.com (10.141.52.162) To DB5PR05MB1687.eurprd05.prod.outlook.com (25.165.6.153) X-MS-Office365-Filtering-Correlation-Id: 8704b43b-febb-41b9-082d-08d34ec2cdfd X-Microsoft-Exchange-Diagnostics: 1;DB5PR05MB1687;2:NAwmhVm6RxtCi5A1R4xX+k59vJRMrmiAkth218Q165cXaW8ULM5I371pgK4At5/1lCZ6j/qE7VR95k0ZGy3AzkFcl2wy58TbOY4jpCZByTfcdi4QwTGMzEl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SsQuGmrca8Th+BKpK2VyT320h7IeS+Wz3BrV5Y+MzhL5TAR24p;4:mclla5PnBmtRSBYELL3QjASlNfhXRvgB6gmgpkAKKDMBxVLiMpTXpYHMr+NkZ32+19LidqICImmkwFv1W+DNGOYJgvvRko0pyEHI3Q2Caizi5bM0cUlsZBVTBJBevWnEcqOBwqDItr6miESOOdjHrcTrFKRTJd8eQRCN8nxNPYUEWLQ/tExHnRTtvij+07rSac+2oc428vXrDIcOXS9E+K8nyML80JssDshdsSCnGynGluUwHiHQtIdpNlUtQSOChQVXddbOcfysoz9AsXNkmCJhyonWmDrT5rfyrVLFon8Nhwf++lR5JC9icuuXnRwdIFWIo8iJ+Rrdk0vzMFEjOcCpkqgCvf4ji1KC4i4mkhEDrmWAIn3bqpeqXMYJDiPQ X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001);SRVR:DB5PR05MB1687;BCL:0;PCL:0;RULEID:;SRVR:DB5PR05MB1687; X-Forefront-PRVS: 088552DE73 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(6009001)(6049001)(24454002)(377454003)(479174004)(50466002)(81166005)(92566002)(36756003)(76176999)(65816999)(5001770100001)(54356999)(189998001)(50986999)(47776003)(23746002)(86362001)(65956001)(65806001)(4001350100001)(66066001)(33656002)(117156001)(93886004)(42186005)(15975445007)(59896002)(64126003)(77096005)(83506001)(2950100001)(19580395003)(1096002)(230700001)(4326007)(3846002)(6116002)(2906002)(80316001)(5008740100001)(5004730100002)(586003)(18886065003);DIR:OUT;SFP:1101;SCL:1;SRVR:DB5PR05MB1687;H:[192.168.1.158];FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: =?Windows-1252?Q?1;DB5PR05MB1687;23:/VlfQCkbW4t7tO06IHTnElOXBVxZ9zPghVtiX?= =?Windows-1252?Q?C3ti6z3dPR27vK2B87yv4CUbW0/8DGqxaxiMZ9GHsE0L+tePoqCW1HW9?= =?Windows-1252?Q?yuTO+yOGI8SxKCLDm7a/V1BWLvrUonVS1Xv4wgb3eYq6X2YOAuKHa1/4?= =?Windows-1252?Q?bTPYhePlpgEEB4f+CWhQS6yNGgyJYYfJ+bmpPdOB+1l8zkdi9p5/B/SF?= =?Windows-1252?Q?fqxJ7yrCvBaqWwjythZutNfQKYOrsW4LlpntJMm7iQlizbNEGEDc0Lj6?= =?Windows-1252?Q?/NRJx8L6IMLxzTx6gCS8fHI9QeSepXEx/f7oPmX8D/KiEKJcfz9qqSvw?= =?Windows-1252?Q?rCIl4BuMoIY+UaY8m01CRzthsk6Bod2CooC8SiXbhJEp7xpBBnfXl0WY?= =?Windows-1252?Q?YgbpLRuNuE+ZBRKI0Wm5UxOF9lOBMxm3qrm3BXF/bUBWax3rdehVT8f9?= =?Windows-1252?Q?wT+iX4yBOE0Yxs1OXH4GuADf1gud0OkHdkh6ULqqG8weL28dE7ufkBCU?= =?Windows-1252?Q?nmlnO9nLnEA0aXzLVVm8F0b8dCBVFWBlwm/XnAgm+xbHPi0i9KwQ4wxG?= =?Windows-1252?Q?NIu4axveYI/hDXCX8L/h3VMIBCS7fH5aVmv2WlzhZ9JXplYbp/p1nDDv?= =?Windows-1252?Q?13f+PEtdsAW/zu5YQkiSxXsLLAoxU7DWHhaTyXM+RLZMIkqKjL6SA1MQ?= =?Windows-1252?Q?Se3kNbborplTDtW0Gdxn1qKca/7+s7v4AAjHrHrioV/mwAAonIVgiETm?= =?Windows-1252?Q?9F3dYSnNkP7wT5glz86k8N+toHngghjFRZZDUELvkcfVGdwhDm0a02TG?= =?Windows-1252?Q?BT7on4/l82PdmWqPwjdNaqsVeSIF/3dVEpeMbOwcpstIWAZNM6v1LdyP?= =?Windows-1252?Q?mLWszCETnaUPQvNw+Y7h+v4Y+ONwC3jHBK7Tm31/2aJk7j3K+o8+Ggy0?= =?Windows-1252?Q?wlMUeECF0aiGEK3J3G4korTJcqH1J6mEkww2EwkLxL0bYwIx6kSWagMR?= =?Windows-1252?Q?xJD5l+ur3IQDioyQfQG/IKyagt7gM8qs/EaF1e1oqOz9VShQT6c5U6lK?= =?Windows-1252?Q?ByXNC6EhdccJKRrCHiENBB0MrknOOHDxM32RGekWwHVnVyWdBX/tvhaX?= =?Windows-1252?Q?06K1Zmg0FCKpKTqOkEDAJhcZwgDeqYsIOVbDlT3UJKpcCXPXgWPk9ngO?= =?Windows-1252?Q?ALfOHG5iZAExdjyLcbUl5zOOyrVDu2MN6YFqgeWtAR2CF3ZqlBS2OOJk?= =?Windows-1252?Q?nnqg9OZ/mvp1ngnQiW4EA6C2PNS8vcdc/bSW4M=3D?= X-Microsoft-Exchange-Diagnostics: 1;DB5PR05MB1687;5:XUHw0fMMuK9GA9qeldCNExEiPw1PQclvUua1VlK8kaft9qWCSlmK4X3BGplRUjH1DAwePR1wVLKOm9epvs070ACqoa5a5poJNLCoigFDq93fCixlQEMvBkYgHaE5u5TbdnOmedqDcCByd8nzDRgpGQ==;24:bh+EUc69UvK/AXThn+eOaqF8tHGyR6Pj9PydFPNXPol751Psx3L59BU7TjK7tjO7rPiD2ZeyiAE8iUin0iw8DgX0RlCE2oNBzPrCF+/j9IA= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Mar 2016 00:18:14.9811 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5PR05MB1687 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 675 Lines: 15 On 3/17/2016 6:55 PM, Paul E. McKenney wrote: > The RCU stall-warn stack traces can be ugly, agreed. > > That said, RCU used to use NMI-based stack traces, but switched to the > current scheme due to the NMIs having the unfortunate habit of locking > things up, which IIRC often meant no stack traces at all. If I recall > correctly, one of the problems was self-deadlock in printk(). Steven Rostedt enabled the per_cpu printk func support in June 2014, and the nmi_backtrace code uses it to just capture printk output to percpu buffers, so I think it's going to be a lot more robust than earlier attempts. -- Chris Metcalf, Mellanox Technologies http://www.mellanox.com