This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: Printing all opened files
- From: Jean-Eric Cuendet <jec at rptec dot ch>
- To: systemtap at sourceware dot org
- Date: Wed, 16 Aug 2006 15:16:51 +0200
- Subject: Re: Printing all opened files
- References: <OFF3B1141D.E445F69E-ON852571CD.00428C3E-852571CD.0042B011@us.ibm.com>
Is it possible to probe where the files are read from disk, when they
are not in the cache?
Michael Grundy wrote:
I try to print all the files that are opened. This will be useful to
have a pictures of which files get opened during the boot process.
I did:
probe.function("sys_open")
{
print ("Called\n");
}
which is called often. But how do I get the file name that was opened to
print it out?
probe syscall.open
{
printf("open: %s", filename)
}
Thanks
Mike
=========================================
Michael Grundy - grundym@us.ibm.com
--
Best regards / Salutations.
Jean-Eric Cuendet
Senior developer / Technical support
Riskpro Technologies SA
Av. Louis-Ruchonnet 2
CH-1003 Lausanne
Switzerland
Direct : +41 21 637 0123
Principal : +41 21 637 0110
Fax : +41 21 637 0111
Skype : jec.rptec
Web : http://www.rptec.ch
--------------------------------------------------------