This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: How to find out, what "pdflush" is working on
- From: fche at redhat dot com (Frank Ch. Eigler)
- To: Chris Snook <csnook at redhat dot com>
- Cc: Martin Knoblauch <knobi at knobisoft dot de>, linux-kernel at vger dot kernel dot org, Peter zijlstra <a dot p dot zijlstra at chello dot nl>, Fengguang Wu <wfg at mail dot ustc dot edu dot cn>, systemtap at sources dot redhat dot com
- Date: Fri, 26 Sep 2008 17:24:41 -0400
- Subject: Re: How to find out, what "pdflush" is working on
- References: <849662.25086.qm@web32602.mail.mud.yahoo.com> <48D003F1.50101@redhat.com>
> [...]
>> Is there a way to find out what a certain instance of "pdflush" is
>> working on? Like which block-device or which fliesystem it is
>> writing to? [...]
Something based upon the following systemtap script may help:
probe kernel.function("__writeback_single_inode") {
if (execname() == "pdflush")
printf("pdflush %d writeback bdev %x inode %x\n", tid(), $inode->i_rdev, $inode->i_ino)
}
Other fields are available as $inode->FOO.
- FChE