trace: add tracetool simpletrace_stap format
authorStefan Hajnoczi <stefanha@redhat.com>
Sun, 22 Jun 2014 13:46:05 +0000 (21:46 +0800)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 12 Aug 2014 13:26:11 +0000 (14:26 +0100)
commit3f8b112d6b9ab65e165096582c78154dda1adc69
tree052097276ce312b408517fe4ac7748f79b2db0a3
parenta76ccf3c1cb06576af091c5ac8bc264515b1bb7f
trace: add tracetool simpletrace_stap format

This new tracetool "format" generates a SystemTap .stp file that outputs
simpletrace binary trace data.

In contrast to simpletrace or ftrace, SystemTap does not define its own
trace format.  All output from SystemTap is generated by .stp files.
This patch lets us generate a .stp file that outputs in the simpletrace
binary format.

This makes it possible to reuse simpletrace.py to analyze traces
recorded using SystemTap.  The simpletrace binary format is especially
useful for long-running traces like flight-recorder mode where string
formatting can be expensive.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
scripts/tracetool/format/simpletrace_stap.py [new file with mode: 0644]