* smatch v1.59 released
@ 2013-07-15 8:15 Dan Carpenter
2013-07-15 11:49 ` Dan Carpenter
0 siblings, 1 reply; 2+ messages in thread
From: Dan Carpenter @ 2013-07-15 8:15 UTC (permalink / raw)
To: smatch; +Cc: linux-kernel
Smatch is a C static checker with a lot of kernel specific checks.
This release has several new tricks:
1) Small functions are parsed inline now. That makes it more accurate
and now even without the database configured, you have at least some
cross function analysis.
2) The way smatch handles math was completely rewritten and should be
more accurate.
3) Comparisons between variables are recorded. So even if you don't
know the return value, maybe you know that it is less than or equal to
parameter 2. (This requires the database to be set up).
Btw, having the database set up is super useful for understanding code.
Say you want to know how lifebook_limit_serio3() is called you can type:
`smbdb.py lifebook_limit_serio3` and it's simple enough to see that
(struct dmi_system_id)->callback() is called from dmi_check_system().
The command to set up the database is:
~/path/to/smatch/smatch_scripts/build_kernel_data.sh
To run smatch on the kernel source:
~/path/to/smatch/smatch_scripts/test_kernel.sh
To test a specific file:
~/path/to/smatch/smatch_scripts/kchecker drivers/file.c
regards,
dan carpenter
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: smatch v1.59 released
2013-07-15 8:15 smatch v1.59 released Dan Carpenter
@ 2013-07-15 11:49 ` Dan Carpenter
0 siblings, 0 replies; 2+ messages in thread
From: Dan Carpenter @ 2013-07-15 11:49 UTC (permalink / raw)
To: smatch; +Cc: linux-kernel
Oops. I forgot to give the URL. It is:
http://repo.or.cz/w/smatch.git
You can clone the repository with:
git clone git://repo.or.cz/smatch.git
regards,
dan carpenter
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-07-15 11:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-15 8:15 smatch v1.59 released Dan Carpenter
2013-07-15 11:49 ` Dan Carpenter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox