scripts/analyse-locks-simpletrace.py: script to analyse lock times
commitb5976c2e46e86b36b01d8ac380a182e22209a7cd
authorAlex Bennée <alex.bennee@linaro.org>
Thu, 11 Jan 2018 08:27:22 +0000 (11 11:27 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 16 Jan 2018 13:54:52 +0000 (16 14:54 +0100)
treea4d61df0d36321a2c6a445a30e51aa6e17d949db
parent6c27a0ded992c2daddf12a225b71e42c965c4c6a
scripts/analyse-locks-simpletrace.py: script to analyse lock times

This script allows analysis of mutex acquisition and hold times based
on a trace file. Given a trace control file of:

  qemu_mutex_lock
  qemu_mutex_locked
  qemu_mutex_unlock

And running with:

  $QEMU $QEMU_ARGS -trace events=./lock-trace

You can analyse the results with:

  ./scripts/analyse-locks-simpletrace.py trace-events-all ./trace-21812

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
scripts/analyse-locks-simpletrace.py [new file with mode: 0755]