Skip to contentSkip to conversation

Tracing patches

GIT PULL Applied Stefan Hajnoczi 3 participants 8 messages Oct 14, 2019 – Oct 15, 2019

lore
Share & tools
lore
#0 lore raw

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 a1f4fc951a277c49a25418cafb028ec5529707fa:

trace: avoid "is" with a literal Python 3.8 warnings (2019-10-14 09:54:46 +0100)

----------------------------------------------------------------
Pull request

----------------------------------------------------------------

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
#1 lore raw

[PULL 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
index 04279fa62e..44c118bc2a 100644
@@ -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
#2 lore raw

[PULL 1/2] trace: add --group=all to tracing.txt

In reply to Stefan Hajnoczi

tracetool 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.

Fixes 2098c56a9bc5901e145fa5d4759f075808811685

("trace: move setting of group name into Makefiles")
Launchpad: https://bugs.launchpad.net/bugs/1844814

Message-Id: <[email protected]>

---
 docs/devel/tracing.txt | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
docs/devel/tracing.txt +2 -1
index 8231bbf5d1..8c0376fefa 100644
@@ -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
#3 lore raw

Re: [PULL 1/2] trace: add --group=all to tracing.txt

Hi Stefan,

Quoted 7 lines · Stefan Hajnoczi

tracetool 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.

Fixes 2098c56a9bc5901e145fa5d4759f075808811685

("trace: move setting of group name into Makefiles")
Launchpad: https://bugs.launchpad.net/bugs/1844814

Sorry I didn't noticed that earlier, but on https://wiki.qemu.org/Contribute/SubmitAPatch#Write_a_meaningful_commit_message we recommend using the 'Buglink' tag. Not sure it's worth resending another pull request...

Quoted 25 lines

Message-Id: <[email protected]>

---
  docs/devel/tracing.txt | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)
docs/devel/tracing.txt +2 -1
index 8231bbf5d1..8c0376fefa 100644
@@ -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.
#4 lore raw

Re: [PULL 1/2] trace: add --group=all to tracing.txt

Quoted 7 lines · Philippe Mathieu-Daudé

Hi Stefan,

Quoted 4 lines · Stefan Hajnoczi

tracetool 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.

Quoted 7 lines
Quoted 3 lines
Fixes 2098c56a9bc5901e145fa5d4759f075808811685

("trace: move setting of group name into Makefiles")
Launchpad: https://bugs.launchpad.net/bugs/1844814

Sorry I didn't noticed that earlier, but on https://wiki.qemu.org/Contribute/SubmitAPatch#Write_a_meaningful_commit_message
we recommend using the 'Buglink' tag.
Not sure it's worth resending another pull request...

Sure, it hasn't been merged yet so I can send a v2.

Stefan

#5 lore raw
In reply to Stefan Hajnoczi
Quoted 13 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 a1f4fc951a277c49a25418cafb028ec5529707fa:

trace: avoid "is" with a literal Python 3.8 warnings (2019-10-14 09:54:46 +0100)

Quoted 9 lines

----------------------------------------------------------------
Pull request

----------------------------------------------------------------

Stefan Hajnoczi (2):
trace: add --group=all to tracing.txt
trace: avoid "is" with a literal Python 3.8 warnings

Applied, thanks.

Please update the changelog at https://wiki.qemu.org/ChangeLog/4.2
for any user-visible changes.

-- PMM

#6 lore raw
Quoted 19 lines · Peter Maydell
Quoted 18 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 a1f4fc951a277c49a25418cafb028ec5529707fa:

trace: avoid "is" with a literal Python 3.8 warnings (2019-10-14 09:54:46 +0100)

----------------------------------------------------------------
Pull request

----------------------------------------------------------------

Quoted 7 lines
Quoted 4 lines

Stefan Hajnoczi (2):
trace: add --group=all to tracing.txt
trace: avoid "is" with a literal Python 3.8 warnings

Applied, thanks.

Buh, v2 missed :(

#7 lore raw
Quoted 27 lines · Philippe Mathieu-Daudé
Quoted 25 lines · Peter Maydell
Quoted 22 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 a1f4fc951a277c49a25418cafb028ec5529707fa:

trace: avoid "is" with a literal Python 3.8 warnings (2019-10-14 09:54:46 +0100)

----------------------------------------------------------------
Pull request

----------------------------------------------------------------

Stefan Hajnoczi (2):
trace: add --group=all to tracing.txt
trace: avoid "is" with a literal Python 3.8 warnings

Quoted 3 lines
Quoted 1 line

Applied, thanks.

Buh, v2 missed :(

Oops. I don't necessarily notice updated pullreq versions unless somebody follows up to the v1 coverletter to say the pull is out of date.

thanks
-- PMM