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: Anyone tried SystemTap with the latest RHEL5 Beta refresh


Nguyen, Thang P wrote:

For example:

stap ioblock_script.stp

------ ioblock_script.stp ---- #! stap

probe begin {
  printf("DEVNAME\tSECTOR\tRW\n")
}
probe ioblock.request {
   printf("%s\t%d\t%s\n", devname, sector, bio_rw_str(rw))
}
probe ioblock.end {
   printf("%s\t%d\t%s\n", devname, sector, bio_rw_str(rw))
}

Thang

This script works for me on x86_64 with latest CVS codes on RHEL5.



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