[PATCH] dot_flow_graph.stp tapset
William Cohen
wcohen@redhat.com
Mon Nov 28 17:09:00 GMT 2011
When trying to better understand how the various bio flow through the
the block io trace points I made a script to plot out the path that
various struct bio pointers take between the various trace points. I
have factored out the graphing code into a tapset, dot_flow_graph.stp
and have a simple-minded script, block_graph.stp to demonstrate its
use. It doesn't take into account that bio structs getting merged with
other bio operations. However, people might still find the code useful.
Below is the command line used to produce a simple state diagram using the tapset:
stap -v /tmp/block_graph.stp -c 'sleep 20'|dot -Tsvg -o /tmp/fsm.svg
Attached are the patch for the dot_flow_graph.stp, block_graph.stp,
and example output.
Any feedback on the tapset would be appreciated.
-Will
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-the-dot_flow_graph.stp-tapset.patch
Type: text/x-patch
Size: 3180 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/systemtap/attachments/20111128/6c9198ee/attachment.bin>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: block_graph.stp
URL: <http://sourceware.org/pipermail/systemtap/attachments/20111128/6c9198ee/attachment.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fsm.svg
Type: image/svg+xml
Size: 8347 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/systemtap/attachments/20111128/6c9198ee/attachment.svg>
More information about the Systemtap
mailing list