[Spice-devel] [server PATCH 0/3] replay: add count and skip

Uri Lublin uril at redhat.com
Thu Mar 3 09:58:49 UTC 2016


This patch-set touches only server/tests/replay utility.

It adds 2 commands and fixes an access to a NULL pointer.

With count and skip new commands, it's possible
to fast-forward the replay to an interesting point.

How to use it:
First run only with --count: spice-server-replay --count $spice-recorded-file
It counts the number of commands processed by spice-server.

Than run with skip and the number of commands to skip.
For example if there are 100000 commands one can skip to 50000
spice-server-replay --slow=1000 --skip=50000 <params> $spice-recorded-file

Note, that all commands are processed by spice-server, the "--skip"
only skips the sleep of "--slow".

Uri Lublin (3):
  replay: learn how to count commands
  replay: learn how to skip the first N (slow) commands
  replay: do not use argv after g_option_context_parse

 server/tests/replay.c | 29 +++++++++++++++++++++++------
 1 file changed, 23 insertions(+), 6 deletions(-)

-- 
2.5.0



More information about the Spice-devel mailing list