qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

scripts: Explicit usage of Python 3 (scripts with __main__)

Use the program search path to find the Python 3 interpreter.

Patch created mechanically by running:

$ sed -i "s,^#\!/usr/bin/\(env\ \)\?python$,#\!/usr/bin/env python3," \
$(git grep -l 'if __name__.*__main__')

Reported-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Suggested-by: Daniel P. Berrangé <berrange@redhat.com>
Suggested-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20200130163232.10446-6-philmd@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>

+14 -14
+1 -1
scripts/analyse-locks-simpletrace.py
··· 1 - #!/usr/bin/env python 1 + #!/usr/bin/env python3 2 2 # -*- coding: utf-8 -*- 3 3 # 4 4 # Analyse lock events and compute statistics
+1 -1
scripts/decodetree.py
··· 1 - #!/usr/bin/env python 1 + #!/usr/bin/env python3 2 2 # Copyright (c) 2018 Linaro Limited 3 3 # 4 4 # This library is free software; you can redistribute it and/or
+1 -1
scripts/device-crash-test
··· 1 - #!/usr/bin/env python 1 + #!/usr/bin/env python3 2 2 # 3 3 # Copyright (c) 2017 Red Hat Inc 4 4 #
+1 -1
scripts/kvm/kvm_flightrecorder
··· 1 - #!/usr/bin/env python 1 + #!/usr/bin/env python3 2 2 # 3 3 # KVM Flight Recorder - ring buffer tracing script 4 4 #
+1 -1
scripts/qapi-gen.py
··· 1 - #!/usr/bin/env python 1 + #!/usr/bin/env python3 2 2 # QAPI generator 3 3 # 4 4 # This work is licensed under the terms of the GNU GPL, version 2 or later.
+1 -1
scripts/qmp/qemu-ga-client
··· 1 - #!/usr/bin/python 1 + #!/usr/bin/env python3 2 2 3 3 # QEMU Guest Agent Client 4 4 #
+1 -1
scripts/qmp/qmp
··· 1 - #!/usr/bin/python 1 + #!/usr/bin/env python3 2 2 # 3 3 # QMP command line tool 4 4 #
+1 -1
scripts/qmp/qmp-shell
··· 1 - #!/usr/bin/python 1 + #!/usr/bin/env python3 2 2 # 3 3 # Low-level QEMU shell on top of QMP. 4 4 #
+1 -1
scripts/qmp/qom-fuse
··· 1 - #!/usr/bin/python 1 + #!/usr/bin/env python3 2 2 ## 3 3 # QEMU Object Model test tools 4 4 #
+1 -1
scripts/render_block_graph.py
··· 1 - #!/usr/bin/env python 1 + #!/usr/bin/env python3 2 2 # 3 3 # Render Qemu Block Graph 4 4 #
+1 -1
scripts/replay-dump.py
··· 1 - #!/usr/bin/env python 1 + #!/usr/bin/env python3 2 2 # -*- coding: utf-8 -*- 3 3 # 4 4 # Dump the contents of a recorded execution stream
+1 -1
scripts/simpletrace.py
··· 1 - #!/usr/bin/env python 1 + #!/usr/bin/env python3 2 2 # 3 3 # Pretty-printer for simple trace backend binary trace files 4 4 #
+1 -1
scripts/tracetool.py
··· 1 - #!/usr/bin/env python 1 + #!/usr/bin/env python3 2 2 # -*- coding: utf-8 -*- 3 3 4 4 """
+1 -1
scripts/vmstate-static-checker.py
··· 1 - #!/usr/bin/python 1 + #!/usr/bin/env python3 2 2 # 3 3 # Compares vmstate information stored in JSON format, obtained from 4 4 # the -dump-vmstate QEMU command.