linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Smatch 1.57 released
       [not found]   ` <A607CE07-5C1C-445B-B2CA-DA3B25237F5E@coraid.com>
@ 2012-10-31  7:10     ` Dan Carpenter
  0 siblings, 0 replies; only message in thread
From: Dan Carpenter @ 2012-10-31  7:10 UTC (permalink / raw)
  To: linux-kernel, smatch, Ed Cashin

Smatch is a C static analysis tool, but with a lot of kernel
specific checks.  It's been 8 months since I did a Smatch release so
probably another one was due.

The main interesting thing right now is the value tracking across
function boundaries with the database.  But also there was a some
work done with array out of bounds detection.  And internally there
was a fix so it should run faster and use less memory.  Along with
lots of other small fixes.

The way to use Smatch is:
	git clone git://repo.or.cz/smatch.git
	cd smatch
	make
	cd ~/path/to/kernel

	[ This next step is optional if you want to build the
	  database.  If you build it several times the database
	  becomes more complete. ]
	~/path/to/smatch/smatch_scripts/build_kernel_data.sh

	~/path/to/smatch/smatch_scripts/test_kernel.sh

It creates warns.txt file with all the warnings.  Or alternatively
if you just want to check one file then the command is:

	~/progs/smatch/devel/smatch_scripts/kchecker drivers/file.c

regards,
dan carpenter

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-10-31  7:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <8D458972-B1BB-4BB2-8C91-3489A8D24428@coraid.com>
     [not found] ` <20121030175330.GD6667@mwanda>
     [not found]   ` <A607CE07-5C1C-445B-B2CA-DA3B25237F5E@coraid.com>
2012-10-31  7:10     ` Smatch 1.57 released Dan Carpenter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).