Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933543AbaJWA3K (ORCPT ); Wed, 22 Oct 2014 20:29:10 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:15453 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753633AbaJWA3I (ORCPT ); Wed, 22 Oct 2014 20:29:08 -0400 X-AuditID: cbfee691-f79b86d000004a5a-13-54484bd1793e Date: Thu, 23 Oct 2014 00:29:05 +0000 (GMT) From: Eunbong Song Subject: Re: Re: [PATCH] mips: add arch_trigger_all_cpu_backtrace() function To: James Hogan Cc: "ralf@linux-mips.org" , "linux-mips@linux-mips.org" , "linux-kernel@vger.kernel.org" Reply-to: eunb.song@samsung.com MIME-version: 1.0 X-MTR: 20141023002307469@eunb.song Msgkey: 20141023002307469@eunb.song X-EPLocale: ko_KR.euc-kr X-Priority: 3 X-EPWebmail-Msg-Type: personal X-EPWebmail-Reply-Demand: 0 X-EPApproval-Locale: X-EPHeader: ML X-MLAttribute: X-RootMTR: 20141023002307469@eunb.song X-ParentMTR: X-ArchiveUser: EV X-CPGSPASS: N X-ConfirmMail: N,general Content-type: text/plain; charset=euc-kr MIME-version: 1.0 Message-id: <863134949.204101414024143724.JavaMail.weblogic@epmlwas06c> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprDJsWRmVeSWpSXmKPExsVy+t8zHd2L3h4hBue3iVtc3jWHzYHR4/Mm uQDGqAZGm8Si5IzMslSF1Lzk/JTMvHRbpdAQN10LJYWM/OISW6VoIwNjPSNTEz0jE3M9S4NY KyNTJYW8xNxUW6UKXaheJYWi5AKg2tzKYqABOal6UHG94tS8FIes/FKQS/SKE3OLS/PS9ZLz c5UUyhJzSoFGKOknTGXMWPPzOXPBP46K3V9OMTcw3uHoYuTkEBJQkWj5/50RxJYQMJG4cvEh O4QtJnHh3nq2LkYuoJpljBLvft2BK5p+6hEjRGIOo8SCF/1MIAkWAVWJ9y9egnWzCW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DCyhL7NjawQBwhITFr+gVWCJtXYkb7 U6i4nMS0r2uYIWxpifOzNsAdvfj7Y6g4v8Sx2zuYIGwBialnDkLVqEs0zXrPBmHzSaxZ+BZq pqDE6WvdzDC77m+ZywRzw9aWJ2A3MAsoSkzpfsgOYWtJfPmxjw3VKyC2u8S618/YJjDKzkKS moWkfRaSdmQ1CxhZVjGKphYkFxQnpVcY6RUn5haX5qXrJefnbmIEJ6Nni3Yw/jtvfYhRgINR iYd3Bod7iBBrYllxZe4hRgkOZiUR3lprjxAh3pTEyqrUovz4otKc1OJDjKbAWJvILCWanA9M lHkl8YbGBsaGhpbmBqaGRhZK4rzyt5KChATSE0tSs1NTC1KLYPqYODilGhhrf7ZOq14kPO+K 5tv0Uw//1XIJeTH6m/8V7dxWdO67d5TSDbPLKadl2N7cnFn/Mzzr+mUFXeZ3glFf/92+56O/ NLixwfX/jF1VlwVerH+gLHqg6NeNZTFhh7jtd+7/ve3gNrlcpqMrt9YcbVxjF/FgZXnO+k3P v33yb37B0rWg54rUlDdqf9/JKrEUZyQaajEXFScCAHFs2g1cAwAA DLP-Filter: Pass X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by nfs id s9N0TGhg012024 >> This patch adds arch_trigger_all_cpu_backtrace() for mips architecture. > Don't forget your Signed-off-by I'm sorry fot this. >> +static void arch_dump_stack(void *info) >> +{ >> + struct pt_regs *regs; >> + >> + regs = get_irq_regs(); >> + >> + if(regs) >> + show_regs(regs); >> + >> + dump_stack(); >> +} >> + >> +void arch_trigger_all_cpu_backtrace(bool include_self) >> +{ >> + smp_call_function(arch_dump_stack, NULL, 1); > should this call arch_dump_stack directly too if include_self? Currently, in case of mips there is no case include_self is true, so this is not a problem. arch_trigger_all_cpu_backtrace can only be called from trigger_allbutself_cpu_backtrace() in kernel/watchdog.c. But as you said, if the case will be added, we should consider that. Thanks. > Cheers > James????{.n?+???????+%?????ݶ??w??{.n?+????{??G?????{ay?ʇڙ?,j??f???h?????????z_??(?階?ݢj"???m??????G????????????&???~???iO???z??v?^?m???? ????????I?