From: Dan Carpenter <dan.carpenter@oracle.com>
To: kernel-janitors@vger.kernel.org
Subject: Re: Tips for a Newcomer
Date: Thu, 25 Jul 2013 14:09:58 +0000 [thread overview]
Message-ID: <20130725140958.GB5585@mwanda> (raw)
In-Reply-To: <51D0A0D7.4070408@gmail.com>
On Thu, Jul 25, 2013 at 08:13:36AM -0400, Logan Blyth wrote:
>
> On 07/03/2013 03:28 AM, Dan Carpenter wrote:
> >On Sun, Jun 30, 2013 at 05:19:19PM -0400, Logan Blyth wrote:
> >>Hello list,
> >>
> >>I am looking for some tips on starting as a kernel janitor, and I
> >>was hoping to find out the general work flow that people use. From
> >>what I can tell, we search through the kernel-next git repo, then
> >>either by grep, ctags, or some other method?
> >I use cscope with vim. There is a "make cscope" build target.
> >
> >>We are looking for
> >>things in the KernelJanitors/Todo, possibly stuff turned up by
> >>sparse? Maybe a different static analyser like from clang?
> >Yeah. That's a lot of it. I don't think anyone is doing clang so
> >you could find some unique bugs that way. Do you know how to get
> >clang working for the kernel?
> I thought I did, turns out, I am struggling. I am planning on
> watching this video
> http://video.linux.com/videos/applying-clang-static-analyzer-to-linux-kernel
> but it is 30 min, and I am about to head off to work. I am also
> having some problems finding bugs, I saw that we should be looking
> in drivers/staging for bugs, Do we need to make changes to the
> .config to get those to show up in the tools (clang, smatch,
> sparse)? If so, are their any other changes?
>
Watch the video on clang. It's pretty complicated from what I
remember, but maybe it's easier these days.
Someone already posted the links for sparse.
For Smatch the commands are:
git clone git://repo.or.cz/smatch.git
cd smatch
make
cd ~/kernel/src/
From here you could build the database (optional):
~/progs/smatch/devel/smatch_scripts/build_kernel_data.sh
To test the whole kernel the command is:
~/progs/smatch/devel/smatch_scripts/test_kernel.sh
creates a warns.txt file at the end.
Or to test only one file the command is:
~/progs/smatch/devel/smatch_scripts/kchecker drivers/file.c
regards,
dan carpenter
prev parent reply other threads:[~2013-07-25 14:09 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-30 21:19 Tips for a Newcomer Logan Blyth
2013-07-03 7:28 ` Dan Carpenter
2013-07-25 12:13 ` Logan Blyth
2013-07-25 13:15 ` Darryl L. Pierce
2013-07-25 14:09 ` Dan Carpenter [this message]
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=20130725140958.GB5585@mwanda \
--to=dan.carpenter@oracle.com \
--cc=kernel-janitors@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.