This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Printing all opened files


Hi,
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?


Or is that the wrong function to probe?
And is there an easy way of getting all filenames that are opened and that are not in the cache (so get from disk)?


Thanks for help.
-jec

--
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
--------------------------------------------------------


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]