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-next>] [day] [month] [year] [list]
Message-ID: <20090131185507.GA3280@kroah.com>
Date:	Sat, 31 Jan 2009 10:55:07 -0800
From:	Greg KH <greg@...ah.com>
To:	apw@...onical.com
Cc:	linux-kernel@...r.kernel.org
Subject: checkpatch.pl is getting too slow

Hi Andy,

I've noticed that checkpatch.pl is getting slower and slower when run on
a whole file, but yesterday I realized that it now is pretty much
unusable:

$ time ./scripts/checkpatch.pl --file drivers/staging/uc2322/aten2011.c

<snip>
total: 168 errors, 126 warnings, 3939 lines checked

drivers/staging/uc2322/aten2011.c has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.

real	8m7.924s
user	8m7.058s
sys	0m0.116s


I've applied about 10 cleanup patches to this file now, which caused it
to suddenly drop back down to a reasonable time (now around 5 seconds)
to run the script, but I can't seem to figure out what I did to make it
better (bisecting gave inconsistant results).

As the tool is something I point companies at all the time to give them
hints on what is needed to clean up their code, and is what I use daily
when cleaning up drivers/staging/ code, is there any way this can be
fixed?

I've attached the aten2011.c file below that takes so long, so that you
can try this out yourself.  If you want the "faster" version of the
file, look in the next -next release, or I can send it to you as well.

thanks,

greg k-h

View attachment "aten2011.c" of type "text/x-csrc" (114757 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ