All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dan Carpenter <dan.carpenter@oracle.com>
To: linux-kernel@vger.kernel.org, smatch@vger.kernel.org,
	Ed Cashin <ecashin@coraid.com>
Subject: Smatch 1.57 released
Date: Wed, 31 Oct 2012 10:10:05 +0300	[thread overview]
Message-ID: <20121031071005.GE6667@mwanda> (raw)
In-Reply-To: <A607CE07-5C1C-445B-B2CA-DA3B25237F5E@coraid.com>

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

           reply	other threads:[~2012-10-31  7:10 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <A607CE07-5C1C-445B-B2CA-DA3B25237F5E@coraid.com>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20121031071005.GE6667@mwanda \
    --to=dan.carpenter@oracle.com \
    --cc=ecashin@coraid.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=smatch@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.