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]
Date:   Mon, 1 Jan 2018 10:47:19 -0500 (EST)
From:   Alan Stern <stern@...land.harvard.edu>
To:     Paul Menzel <pmenzel+linux-pci@...gen.mpg.de>
cc:     Bjorn Helgaas <helgaas@...nel.org>, <linux-pci@...r.kernel.org>,
        <linux-kernel@...r.kernel.org>,
        David Woodhouse <dwmw2@...radead.org>,
        Andy Shevchenko <andy.shevchenko@...il.com>,
        <linux-usb@...r.kernel.org>
Subject: Re: `pci_apply_final_quirks()` taking half a second

On Mon, 1 Jan 2018, Paul Menzel wrote:

> > So they are OHCI controllers.  You could add some debugging statements
> > to quirk_usb_handoff_ohci() to try and locate the part that's taking so
> > long.
> 
> As you suggested debugging statements, I guess the Linux kernel doesn’t 
> offer other ways to instrument functions without modifying the source code.

It does.  Look into ftrace, for example.  However, ftrace only provides
tracing at the level of function calls (hence the name -- "ftrace" for
"function trace"), not for individual statements within a function.  
There are other facilities as well, but none of them are likely to help 
here.

> Is it possible to only rebuild the module somehow or is the early 
> handoff stuff not a module?

It is not a module.

> > It's also worth mentioning that the same source file contains lots of
> > special-case code for AMD and ASmedia hardware.  I don't know whether
> > any of it is involved in the long time delays you are seeing, however.
> 
> Thank you for already looking into this. I haven’t had to time to read 
> the commit messages, which might shed some light into the reasoning.

Good luck!

Alan Stern

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ