[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20130805134634.GB20389@thunk.org>
Date: Mon, 5 Aug 2013 09:46:34 -0400
From: Theodore Ts'o <tytso@....edu>
To: jon ernst <jonernst07@...il.com>
Cc: linux-ext4@...r.kernel.org
Subject: Re: ways to debug Filesystem code.
On Mon, Aug 05, 2013 at 02:38:53AM +0000, jon ernst wrote:
> Hi list,
>
> Sorry for the spam. Just curious what are the ways/tools filesystem
> experts using for debugging.
> I sometimes use Ftrace, Kgtp and printk. Seldomly use virtualbox with kgdb.
> But each way has it short-comes.
> Just want to get some enlightenment about debugging skills, especially
> from you Filesystem experts.
Those are the basic tools. Also useful to consider is compiling with
CONFIG_LOCKDEP, and with CONFIG_DEBUG_INFO or
CONFIG_DEBUG_INFO_REDUCED, and then using a tool such as addr2line[1].
[1] https://plus.google.com/117091380454742934025/posts/h8H9z4EopkS
Other tools include using xfstests run automatically from kvm and
having automated tools to parse the output of xfstests so you can see
test failures much more easily[2].
[2] https://git.kernel.org/cgit/fs/ext2/xfstests-bld.git/
And then when you get a test failure, knowing how to run the test from
xfstests by hand, with a fixed random number generator seed for better
reproducibility. And of course, knowing how to use git bisect.
Beyond that, a huge amount of it is in experience in using the tools.
After all, there isn't that much difference the tools used by between
a master carpenter and a beginning journeyman. They use the hammer,
screwdriver, saws, planes, etc. The trick is in knowing how to best
use the tools. :-)
Cheers,
- Ted
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists