Tracing patches
The following changes since commit 98b2e3c9ab3abfe476a2b02f8f51813edb90e72d:
Merge remote-tracking branch 'remotes/stefanha/tags/block-pull-request' into staging (2019-10-08 16:08:35 +0100)
are available in the Git repository at:
https://github.com/stefanha/qemu.git tags/tracing-pull-request
for you to fetch changes up to 403e11edbfad5da2e6d5842adc9222f60e76ee43:
trace: avoid "is" with a literal Python 3.8 warnings (2019-10-15 09:47:16 +0100)
----------------------------------------------------------------
Pull request
v2:
* Replaced "Launchpad:" tag with "Buglink:" as documented on the SubmitAPatch wiki page [Philippe]
----------------------------------------------------------------
Stefan Hajnoczi (2):
trace: add --group=all to tracing.txt
trace: avoid "is" with a literal Python 3.8 warnings
docs/devel/tracing.txt | 3 ++- scripts/tracetool/__init__.py | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-)
Signature · 1 line
2.21.0
[PULL v2 2/2] trace: avoid "is" with a literal Python 3.8 warnings
The following statement produces a SyntaxWarning with Python 3.8:
if len(format) is 0:
scripts/tracetool/__init__.py:459: SyntaxWarning: "is" with a literal. Did you mean "=="?
Use the conventional len(x) == 0 syntax instead.
Message-Id: <[email protected]>
--- scripts/tracetool/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
scripts/tracetool/__init__.py +2 -2
@@ -456,12 +456,12 @@ def generate(events, group, format, backends, import tracetool format = str(format) - if len(format) is 0: + if len(format) == 0: raise TracetoolError("format not set") if not tracetool.format.exists(format): raise TracetoolError("unknown format: %s" % format) - if len(backends) is 0: + if len(backends) == 0: raise TracetoolError("no backends specified") for backend in backends: if not tracetool.backend.exists(backend):
Signature · 1 line
2.21.0
[PULL v2 1/2] trace: add --group=all to tracing.txt
In reply to Stefan Hajnoczitracetool needs to know the group name ("all", "root", or a specific subdirectory). Also remove the stdin redirection because tracetool.py needs the path to the trace-events file. Update the documentation.
("trace: move setting of group name into Makefiles")
Message-Id: <[email protected]>
--- docs/devel/tracing.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
docs/devel/tracing.txt +2 -1
@@ -317,7 +317,8 @@ probes: --binary path/to/qemu-binary \ --target-type system \ --target-name x86_64 \ - <trace-events-all >qemu.stp + --group=all \ + trace-events-all >qemu.stp To facilitate simple usage of systemtap where there merely needs to be printf logging of certain probes, a helper script "qemu-trace-stap" is provided.
Signature · 1 line
2.21.0
Quoted 10 lines · Stefan Hajnoczi
The following changes since commit
98b2e3c9ab3abfe476a2b02f8f51813edb90e72d:Merge remote-tracking branch 'remotes/stefanha/tags/block-pull-request' into staging (2019-10-08 16:08:35 +0100)are available in the Git repository at:
https://github.com/stefanha/qemu.git tags/tracing-pull-request
for you to fetch changes up to
403e11edbfad5da2e6d5842adc9222f60e76ee43:
Quoted 7 lines
trace: avoid "is" with a literal Python 3.8 warnings (2019-10-15 09:47:16 +0100)
----------------------------------------------------------------
Pull requestv2:
* Replaced "Launchpad:" tag with "Buglink:" as documented on the SubmitAPatch wiki page [Philippe]
Thanks Stefan for this updated pullreq!