On 01/12/2018 05:31 AM, Paolo Bonzini wrote: > From: Alex Bennée <alex.ben...@linaro.org> > > 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.ben...@linaro.org> > Signed-off-by: Paolo Bonzini <pbonz...@redhat.com> > --- > scripts/analyse-locks-simpletrace.py | 99 > ++++++++++++++++++++++++++++++++++++ > 1 file changed, 99 insertions(+) > create mode 100755 scripts/analyse-locks-simpletrace.py > > diff --git a/scripts/analyse-locks-simpletrace.py > b/scripts/analyse-locks-simpletrace.py > new file mode 100755 > index 0000000..a69ed5c > --- /dev/null > +++ b/scripts/analyse-locks-simpletrace.py > @@ -0,0 +1,99 @@ > +#!/usr/bin/env python > +# -*- coding: utf-8 -*- > +# > +# Analyse lock events and > +#
Truncated sentence? -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org
signature.asc
Description: OpenPGP digital signature