Add migration stream analyzation script
commitb17425701d66e4fd380fc492a1da9fc4152ba909
authorAlexander Graf <agraf@suse.de>
Thu, 22 Jan 2015 14:01:40 +0000 (22 15:01 +0100)
committerJuan Quintela <quintela@redhat.com>
Thu, 5 Feb 2015 16:16:14 +0000 (5 17:16 +0100)
treec58a883cfdbdae64a40b7bb444e733e4e7b02128
parent8118f0950fc77cce7873002a5021172dd6e040b5
Add migration stream analyzation script

This patch adds a python tool to the scripts directory that can read
a dumped migration stream if it contains the JSON description of the
device states. I constructs a human readable JSON stream out of it.

It's very simple to use:

  $ qemu-system-x86_64
    (qemu) migrate "exec:cat > mig"
  $ ./scripts/analyze_migration.py -f mig

Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
scripts/analyze-migration.py [new file with mode: 0755]