scriptreplay: rewrite to support new timing file format
* add internal support for multiple log files * add support for new timing file format (default is old format) Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
88025c74e3
commit
fec06a063e
2 changed files with 329 additions and 65 deletions
|
@ -100,6 +100,15 @@ UL_DEBUG_DEFINE_MASKNAMES(script) = UL_DEBUG_EMPTY_MASKNAMES;
|
|||
|
||||
#define DEFAULT_TYPESCRIPT_FILENAME "typescript"
|
||||
|
||||
/*
|
||||
* Script is driven by stream (stdout/stdin) activity. It's possible to
|
||||
* associate arbitrary number of log files with the stream. We have two basic
|
||||
* types of log files: "timing file" (simple or multistream) and "data file"
|
||||
* (raw).
|
||||
*
|
||||
* The same log file maybe be shared between both streams. For exmaple
|
||||
* multi-stream timing file is possible to use for stdin as well as for stdout.
|
||||
*/
|
||||
enum {
|
||||
SCRIPT_FMT_RAW = 1, /* raw slave/master data */
|
||||
SCRIPT_FMT_TIMING_SIMPLE, /* timing info in classic "<delta> <offset>" format */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue