Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753275AbbDHIf4 (ORCPT ); Wed, 8 Apr 2015 04:35:56 -0400 Received: from out4133-34.mail.aliyun.com ([42.120.133.34]:3594 "EHLO out4133-34.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751203AbbDHIfx (ORCPT ); Wed, 8 Apr 2015 04:35:53 -0400 X-Greylist: delayed 86668 seconds by postgrey-1.27 at vger.kernel.org; Wed, 08 Apr 2015 04:35:52 EDT X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R461e4;FP=0|-1|-1|-1|0|-1|-1|-1;HT=r41f05020;MF=hillf.zj@alibaba-inc.com;PH=DS;RN=4;RT=4;SR=0; Reply-To: "Hillf Danton" From: "Hillf Danton" To: "Daniel Thompson" Cc: "linux-kernel" , "Russell King" , "Steven Rostedt" References: <089101d071d6$4ebe2a90$ec3a7fb0$@alibaba-inc.com> In-Reply-To: <089101d071d6$4ebe2a90$ec3a7fb0$@alibaba-inc.com> Subject: Re: [RESEND PATCH 4.0-rc5 v19 6/6] ARM: Add support for on-demand backtrace of other CPUs Date: Wed, 08 Apr 2015 16:35:23 +0800 Message-ID: <089201d071d6$f4eb8480$dec28d80$@alibaba-inc.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQE+0zszBRI2oeWuAHhQ2lTSlETzZp5mBjFw Content-Language: zh-cn Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 746 Lines: 28 > > +void ipi_cpu_backtrace(struct pt_regs *regs) > +{ > + int cpu = smp_processor_id(); > + > + if (cpumask_test_cpu(cpu, to_cpumask(backtrace_mask))) { > + printk_nmi_backtrace_this_cpu_begin(); > + pr_warn("FIQ backtrace for cpu %d\n", cpu); > + if (regs != NULL) > + show_regs(regs); > + else > + dump_stack(); Help more if we could print both register and stack info. > + printk_nmi_backtrace_this_cpu_end(); > + > + cpumask_clear_cpu(cpu, to_cpumask(backtrace_mask)); > + } > +} -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/