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]

Re: Printing all opened files



But it is recommended to reuse the systemtap tapset to avoid writing
your code from the scratch, e.g.
probe syscall.open
{
    printf("%s\n", filename)
}

Thanks, works well! I'd like to print also the gettimeofday (or equivalent) How do I do? Can I call standard methods? Like:

probe syscall.open
{
    printf("STAP OPEN (%d) : %s\n", gettimeofday(), filename)
}


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