From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-vk1-xa42.google.com ([2607:f8b0:4864:20::a42]) by shelob.surriel.com with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.91) (envelope-from ) id 1gNi9x-0003mG-Sq for kernelnewbies@kernelnewbies.org; Fri, 16 Nov 2018 12:44:01 -0500 Received: by mail-vk1-xa42.google.com with SMTP id o130so5436627vke.10 for ; Fri, 16 Nov 2018 09:44:00 -0800 (PST) MIME-Version: 1.0 References: <28496.1542300549@turing-police.cc.vt.edu> <49219.1542367988@turing-police.cc.vt.edu> <5997.1542386778@turing-police.cc.vt.edu> In-Reply-To: <5997.1542386778@turing-police.cc.vt.edu> From: Pintu Agarwal Date: Fri, 16 Nov 2018 23:13:48 +0530 Message-ID: Subject: Re: [ARM64] Printing IRQ stack usage information To: Valdis Kletnieks Cc: mark.rutland@arm.com, Jungseok Lee , kernelnewbies@kernelnewbies.org, catalin.marinas@arm.com, Sungjinn Chung , will.deacon@arm.com, open list , Russell King - ARM Linux , Takahiro Akashi , linux-arm-kernel@lists.infradead.org List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: kernelnewbies-bounces@kernelnewbies.org Message-ID: <20181116174348.l5gnkrQDXreov1Rn1kxkJtTFY6JMm8tzUaNb_afT3DU@z> On Fri, Nov 16, 2018 at 10:16 PM wrote: > > On Fri, 16 Nov 2018 20:10:28 +0530, Pintu Agarwal said: > > > > Look at the code controlled by '#ifdef CONFIG_DEBUG_STACK_USAGE' > > > For example: is it possible to keep storing the irq_stack_usage (for > > each cpu in a variable) information from boot time, and then use this > > variable to dump the irq_stack information, after the system booted, > > may be from proc entry ? > > Congrats. You just re-invented DEBUG_STACK_USAGE, which just keeps a high-water mark > for stack usage. So, you mean to say, my implementation is good enough to get the irq_stack usage, from the interrupt handler ? But my concern is that if I dump it from irq handler, I will get information only for the current cpu. How do I store and get the information for all the cpu from the boot time ? >>From where do I call my dump_irq_stack_info() [some where during the entry/exit part of the irq handler], so that I could dump information for all the handler at boot time itself ? Like I would to capture these information: - What was the name of the handler ? - Which cpu was executing it ? - How much irq stack (max value, same like high water mark) were used at that time ? Where can I collect these information from the boot time ? Thanks, Pintu _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies