Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Linux Tools Project/Systemtap/User Guide/graphing/exampleGraphingScripts.html
< Linux Tools Project | Systemtap/User Guide | graphing
Revision as of 06:48, 9 November 2010 by Unnamed Poltroon (Talk) (New page: <h2> Example Graphing Scripts </h2> Provided below are a few scripts that you can use with the Graphing Perspective.<br><br> <b>readwrite.stp</b><br><br> <i>Counts the reads and writes ...)
Example Graphing Scripts
Provided below are a few scripts that you can use with the Graphing Perspective.
readwrite.stp
Counts the reads and writes that occur and provide this information once per second.
global read, write, startasdfasdf probe begin { start = gettimeofday_s() } probe syscall.write { write += count } probe syscall.read { read += count } probe timer.ms(1000) { printf("%d\t%d\t%d\n", (gettimeofday_s()-start), read, write) read=0 write=0 }