Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936780AbcCQWcK (ORCPT ); Thu, 17 Mar 2016 18:32:10 -0400 Received: from mail-db3on0081.outbound.protection.outlook.com ([157.55.234.81]:8448 "EHLO emea01-db3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S934014AbcCQWcD (ORCPT ); Thu, 17 Mar 2016 18:32:03 -0400 Authentication-Results: linux.vnet.ibm.com; dkim=none (message not signed) header.d=none;linux.vnet.ibm.com; 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> CC: Russell King , Thomas Gleixner , Aaron Tomlin , Ingo Molnar , Andrew Morton , Daniel Thompson , , , , Paul McKenney From: Chris Metcalf Message-ID: <56EB3050.3060607@mellanox.com> Date: Thu, 17 Mar 2016 18:31:44 -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: <20160317193600.GY6344@twins.programming.kicks-ass.net> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [173.76.23.146] X-ClientProxiedBy: BLUPR11CA0054.namprd11.prod.outlook.com (10.141.30.22) To HE1PR05MB1689.eurprd05.prod.outlook.com (25.169.119.155) X-MS-Office365-Filtering-Correlation-Id: 3cf92e83-c941-46a6-b13b-08d34eb3f410 X-Microsoft-Exchange-Diagnostics: 1;HE1PR05MB1689;2:5dEqSXChvXevrOro/GIkHUUOTlD+RoSqsi+TVK2guC1BhYf5M7RcX8KYeCygqDrrYiwYlY/nVPKuXGc6+dJOO+I9K0w5oSGEMnfLfpt+jHbyLsiPpGWq86PWR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b1ZvWradFlPnxBGB4HmZ+PYgqmX7K1euSmkATPRcNHSeHknCqupGazxROzO30j/Vu4;4:pxvvJcYf7CBRgdvYXOuJL9fzgiCAaQD5RdLN3srF/BW4f4LmWbNmFCNFMtnU+bfIlkKqRZA2IH+WyUVfFGPkBQcFxJafcTVX99j00RrzsJ88L8R07+IpXl8cERlS+K/v67EzGf0bkDIuGnjIRiBxywGFPjefn2c8lmk93/qaSxQtJUBQVyhxD+4fXVPQR1aKgCSK1OrarX/jSSugEl2WlcKrE4j93TTf4oQhu9LAI+WPmjfr9ossCA9pCArNEIOIZnYYTnidm+9V+eLz30YU44OB+4mIFbTvcMbHKDxXnmdjWYFVYEwLzD9qcZFbU8Tl+PQTTuAGcixeca2WczU7VXqFHeYEeBfZyG0kTFEOdNGraVcWhdsL7nFOgH33c7Hm X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046);SRVR:HE1PR05MB1689;BCL:0;PCL:0;RULEID:;SRVR:HE1PR05MB1689; X-Forefront-PRVS: 0884AAA693 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(6049001)(6009001)(377454003)(24454002)(479174004)(23746002)(36756003)(230700001)(189998001)(6116002)(3846002)(1096002)(83506001)(586003)(5008740100001)(65956001)(66066001)(65806001)(47776003)(92566002)(4326007)(2906002)(117156001)(59896002)(81166005)(42186005)(86362001)(19580395003)(80316001)(64126003)(15975445007)(77096005)(4001350100001)(5004730100002)(65816999)(76176999)(33656002)(54356999)(50466002)(50986999)(110136002)(2950100001)(18886065003);DIR:OUT;SFP:1101;SCL:1;SRVR:HE1PR05MB1689;H:[192.168.1.158];FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: =?Windows-1252?Q?1;HE1PR05MB1689;23:EW4D0+qAzIcvh28PhH8FvtUpWRO7iJWuuqceZ?= =?Windows-1252?Q?mu0lKTstETQ576dhm+RAgyds0Vrv5N/A+5KaaRPnJSVdj/JLJC3H4klb?= =?Windows-1252?Q?VV7lyq8C0DVv72XJrpgkjrV/ESkQvPpkViA5CU9xQl6Ia8l9/W068bvl?= =?Windows-1252?Q?r/lI15LP7RIr/QQAPoRAWlaeoy4NZP9uGUFfge0iflqPH12USyrVv4Hc?= =?Windows-1252?Q?nQAjaOPces06NV/Zl8q3Hec4lZnCyE72wlLr/3BYAZfISw6jLuUQKtAb?= =?Windows-1252?Q?lO76Ah8h3t+Pg0ijjHcL3oNYBeOg/aJh+s5zn6O54FKjxilpRjvzx+Uw?= =?Windows-1252?Q?49jpyLJPOEsPvXzcslsdVhDlxJC9ZAxkuLfCuP60qJGYkn8rHlWbt1Ze?= =?Windows-1252?Q?48iqP/aFDe8Jj9dlUB2cVDu5dttjjtzuqu7T3JwHiP9zXi2Dt2rxf2i7?= =?Windows-1252?Q?MkG5SUOyap4yOqbYC29Kjiz2j9L0tpI3X4vNLdSw/DwaHf+L7ZdMHRke?= =?Windows-1252?Q?CKW1/5ky+7NBZnpes62xsAIN/tYYWPCvHrTlClS0RRLvQ5WKsQ2hg3Ix?= =?Windows-1252?Q?TU6+Bfu4hEfwroZJDy/4/1SZ8wkBnauZ45fEy/9w/l38IZviAe0h2csC?= =?Windows-1252?Q?yeodHAiqQ9B4n9liMRbZeAtaXUxsZ2RjD4LhCBowUZ4yO3VbdsCkAGRz?= =?Windows-1252?Q?ehi4XS7qRg+kRtX11w/mpQvU3uvbrZZ42aWb4nO0QAfXAdbpEkf8kIMW?= =?Windows-1252?Q?UOgqi4AUDl1kINo1zRQjUfsxeBsrngLMXQ90AVH3DpmHrQs05cBfAodo?= =?Windows-1252?Q?MqDW0BHrtHmqhNlcif5kCEFB6PwmdnPH3Dg7hkIOLBWdFyq6mzUKRhTz?= =?Windows-1252?Q?y3DCIyuDk2XIO+OY0cHNEVmkFSQsKXBZb3k3835MNyEXR7gAQWVBqh1O?= =?Windows-1252?Q?sy91zO7zx8DRfSA7QuwZP39h+bBG7m74hfZ/l9PD+JMnclcq1CHmMz1w?= =?Windows-1252?Q?yi5+E5q6yLZ9DuMoXMj9RCE8EpFvR1rm4IvH8RuNUu0tozrzQzQzYvOy?= =?Windows-1252?Q?Z+E+8iYDrPIXCIS6OHpRlv0bTx8R/soUygUnOxYBTOyqhnadzDtoGaQp?= =?Windows-1252?Q?tBYHW1XofdffeFb9yN9yFSJbm5gOkkouTBJOMzTDsQgYQpFBjkRCtEp1?= =?Windows-1252?Q?h070IFOle5pMW6CyUmocHKfT+4TApZZIsywCsbL+4konqhZC+PKcDoK1?= =?Windows-1252?Q?3k+Ima2IwR4t+3LRA=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1;HE1PR05MB1689;5:JcnHCRnGaY3msMbF2hVz8V6v3IxI4TSY3KvHPVJdB6gzWV4GaiQ7kLzEuVgJEmkLpc8FLjggPwxAy8M3uE9THdSvAYUO7RqJXqYB8dGPcXsgtVRIswi8oa0W2s8VxTaeHEQwz9Cij75a0ASbNJarEA==;24:2Fig0VhVIzOsLtbx2grJaTuTHW9fmTKwAlALDlodTselxOneTcTrwbLpk7djKA1TrqgB4W8plBcNhjmd6CCOwnBMPKofQmZ0vBOeAz5Q2KM= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Mar 2016 22:31:57.0843 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR05MB1689 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1105 Lines: 23 On 3/17/2016 3:36 PM, Peter Zijlstra wrote: > On Wed, Mar 16, 2016 at 01:02:10PM -0400, Chris Metcalf wrote: >> Currently you can only request a backtrace of either all cpus, or >> all cpus but yourself. It can also be helpful to request a remote >> backtrace of a single cpu, and since we want that, the logical >> extension is to support a cpumask as the underlying primitive. >> >> This change modifies the existing lib/nmi_backtrace.c code to take >> a cpumask as its basic primitive, and modifies the linux/nmi.h code >> to use either the old "all/all_but_self" arch methods, or the new >> "cpumask" method, depending on which is available. >> >> The existing clients of nmi_backtrace (arm and x86) are converted >> to using the new cpumask approach in this change. > So the past days I've been staring at RCU stall warns, and they can use > a little of this. Their remote stack unwinds are less than useful. Were you suggesting this as an improvement for a possible v3, or just a kind of implicit ack of the patch series? Thanks! -- Chris Metcalf, Mellanox Technologies http://www.mellanox.com