lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1516240404.15644.23.camel@hxt-semitech.com>
Date:   Thu, 18 Jan 2018 01:53:32 +0000
From:   "Yang, Shunyong" <shunyong.yang@...-semitech.com>
To:     "tglx@...utronix.de" <tglx@...utronix.de>,
        "marc.zyngier@....com" <marc.zyngier@....com>
CC:     "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
        "Zheng, Joey" <yu.zheng@...-semitech.com>
Subject: Re: [PATCH] irqdomain: provide useful debugging information for irq
 domain

Hi, Marc

On Wed, 2018-01-17 at 10:43 +0000, Marc Zyngier wrote:
> On 17/01/18 10:20, Yang, Shunyong wrote:
> > 
> > Hi, Thomas and Marc,
> > 
> > On Wed, 2018-01-17 at 11:01 +0100, Thomas Gleixner wrote:
> > > 
> > > On Wed, 17 Jan 2018, Yang, Shunyong wrote:
> > > > 
> > > > 
> > > > On Wed, 2018-01-17 at 10:33 +0100, Thomas Gleixner wrote:
> > > > > 
> > > > > 
> > > > > And how is that different from:
> > > > > 
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > > The nodes under debugfs irq/irqs describes information of
> > > > > > every
> > > > > > single
> > > > > > irq.
> > > > > Not at all. It contains the complete hierarchical information
> > > > > of
> > > > > each
> > > > > virq.
> > > > > 
> > > > I think irq_domain_mapping can provide some high-level
> > > > information
> > > > in a
> > > > summary style.
> > > > For example, we can check all the IRQs connect to a specific
> > > > irq
> > > > chip
> > > > or irq domain.
> > > You can retrieve the same information from the irq/irqs files.
> > > All it
> > > takes
> > > is a shell script.
> > > 
> > > Aside of that with hierarchical irq domains the old debug output
> > > is
> > > just
> > > useless.
> > > 
> > Umm...Agree. Need I post a patch to remove it?
> I'm on it.
> 
In addition to the "%p" to "%px" change in IRQ_DOMAIN_DEBUG you have
posted patch to remove it, my original patch includes several other
changes:
1. change to "%px" in kasprintf() parameters in
function __irq_domain_alloc_fwnode() to build name which reflects the
real pointer address from caller, this may be useful when reading debug
information.
 
n = kasprintf(GFP_KERNEL, "irqchip@%px", data);

2. other 3 changes from "%p" to "%px" in existing pr_debug().

Could I submit a V2 patch which depends on your "irqdomain: Kill
CONFIG_IRQ_DOMAIN_DEBUG" patch to handle this? 
Following is the link of your patch,
https://patchwork.kernel.org/patch/10169367/ 
.

Thanks
Shunyong

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ