Tracing patches
[PULL 1/2] scripts/tracetool: Update maintainer email address
In reply to Stefan HajnocziFrom: Philippe Mathieu-Daudé <[email protected]>
There is an effort in progress to generate a QEMU Python package. As I'm not sure this old email is still valid, update it to not produce package with broken maintainer email.
Patch created mechanically by running:
$ sed -i 's,\(__email__ *= "\)[email protected]",\[email protected]",' \ $(git grep -l 'email.*[email protected]')
Message-id: [email protected]
--- scripts/tracetool.py | 2 +- scripts/tracetool/__init__.py | 2 +- scripts/tracetool/backend/__init__.py | 2 +- scripts/tracetool/backend/dtrace.py | 2 +- scripts/tracetool/backend/log.py | 2 +- scripts/tracetool/backend/simple.py | 2 +- scripts/tracetool/backend/ust.py | 2 +- scripts/tracetool/format/__init__.py | 2 +- scripts/tracetool/format/c.py | 2 +- scripts/tracetool/format/d.py | 2 +- scripts/tracetool/format/h.py | 2 +- scripts/tracetool/format/stap.py | 2 +- scripts/tracetool/format/tcg_h.py | 2 +- scripts/tracetool/format/tcg_helper_c.py | 2 +- scripts/tracetool/format/tcg_helper_h.py | 2 +- scripts/tracetool/format/tcg_helper_wrapper_h.py | 2 +- scripts/tracetool/transform.py | 2 +- scripts/tracetool/vcpu.py | 2 +- 18 files changed, 18 insertions(+), 18 deletions(-)
scripts/tracetool.py +1 -1
@@ -10,7 +10,7 @@ __copyright__ = "Copyright 2012-2014, Lluís Vilanova <[email protected]>" __license__ = "GPL version 2 or (at your option) any later version" __maintainer__ = "Stefan Hajnoczi" -__email__ = "[email protected]" +__email__ = "[email protected]" import sys
scripts/tracetool/__init__.py +1 -1
@@ -9,7 +9,7 @@ __copyright__ = "Copyright 2012-2017, Lluís Vilanova <[email protected]>" __license__ = "GPL version 2 or (at your option) any later version" __maintainer__ = "Stefan Hajnoczi" -__email__ = "[email protected]" +__email__ = "[email protected]" import re
scripts/tracetool/backend/__init__.py +1 -1
@@ -50,7 +50,7 @@ __copyright__ = "Copyright 2012-2014, Lluís Vilanova <[email protected]>" __license__ = "GPL version 2 or (at your option) any later version" __maintainer__ = "Stefan Hajnoczi" -__email__ = "[email protected]" +__email__ = "[email protected]" import os
scripts/tracetool/backend/dtrace.py +1 -1
@@ -9,7 +9,7 @@ __copyright__ = "Copyright 2012-2017, Lluís Vilanova <[email protected]>" __license__ = "GPL version 2 or (at your option) any later version" __maintainer__ = "Stefan Hajnoczi" -__email__ = "[email protected]" +__email__ = "[email protected]" from tracetool import out
scripts/tracetool/backend/log.py +1 -1
@@ -9,7 +9,7 @@ __copyright__ = "Copyright 2012-2017, Lluís Vilanova <[email protected]>" __license__ = "GPL version 2 or (at your option) any later version" __maintainer__ = "Stefan Hajnoczi" -__email__ = "[email protected]" +__email__ = "[email protected]" from tracetool import out
scripts/tracetool/backend/simple.py +1 -1
@@ -9,7 +9,7 @@ __copyright__ = "Copyright 2012-2017, Lluís Vilanova <[email protected]>" __license__ = "GPL version 2 or (at your option) any later version" __maintainer__ = "Stefan Hajnoczi" -__email__ = "[email protected]" +__email__ = "[email protected]" from tracetool import out
scripts/tracetool/backend/ust.py +1 -1
@@ -9,7 +9,7 @@ __copyright__ = "Copyright 2012-2017, Lluís Vilanova <[email protected]>" __license__ = "GPL version 2 or (at your option) any later version" __maintainer__ = "Stefan Hajnoczi" -__email__ = "[email protected]" +__email__ = "[email protected]" from tracetool import out
scripts/tracetool/format/__init__.py +1 -1
@@ -32,7 +32,7 @@ __copyright__ = "Copyright 2012-2014, Lluís Vilanova <[email protected]>" __license__ = "GPL version 2 or (at your option) any later version" __maintainer__ = "Stefan Hajnoczi" -__email__ = "[email protected]" +__email__ = "[email protected]" import os
scripts/tracetool/format/c.py +1 -1
@@ -9,7 +9,7 @@ __copyright__ = "Copyright 2012-2014, Lluís Vilanova <[email protected]>" __license__ = "GPL version 2 or (at your option) any later version" __maintainer__ = "Stefan Hajnoczi" -__email__ = "[email protected]" +__email__ = "[email protected]" from tracetool import out
scripts/tracetool/format/d.py +1 -1
@@ -9,7 +9,7 @@ __copyright__ = "Copyright 2012-2014, Lluís Vilanova <[email protected]>" __license__ = "GPL version 2 or (at your option) any later version" __maintainer__ = "Stefan Hajnoczi" -__email__ = "[email protected]" +__email__ = "[email protected]" from tracetool import out
scripts/tracetool/format/h.py +1 -1
@@ -9,7 +9,7 @@ __copyright__ = "Copyright 2012-2017, Lluís Vilanova <[email protected]>" __license__ = "GPL version 2 or (at your option) any later version" __maintainer__ = "Stefan Hajnoczi" -__email__ = "[email protected]" +__email__ = "[email protected]" from tracetool import out
scripts/tracetool/format/stap.py +1 -1
@@ -9,7 +9,7 @@ __copyright__ = "Copyright 2012-2014, Lluís Vilanova <[email protected]>" __license__ = "GPL version 2 or (at your option) any later version" __maintainer__ = "Stefan Hajnoczi" -__email__ = "[email protected]" +__email__ = "[email protected]" from tracetool import out
scripts/tracetool/format/tcg_h.py +1 -1
@@ -9,7 +9,7 @@ __copyright__ = "Copyright 2012-2017, Lluís Vilanova <[email protected]>" __license__ = "GPL version 2 or (at your option) any later version" __maintainer__ = "Stefan Hajnoczi" -__email__ = "[email protected]" +__email__ = "[email protected]" from tracetool import out, Arguments
scripts/tracetool/format/tcg_helper_c.py +1 -1
@@ -9,7 +9,7 @@ __copyright__ = "Copyright 2012-2017, Lluís Vilanova <[email protected]>" __license__ = "GPL version 2 or (at your option) any later version" __maintainer__ = "Stefan Hajnoczi" -__email__ = "[email protected]" +__email__ = "[email protected]" from tracetool import Arguments, out
scripts/tracetool/format/tcg_helper_h.py +1 -1
@@ -9,7 +9,7 @@ __copyright__ = "Copyright 2012-2016, Lluís Vilanova <[email protected]>" __license__ = "GPL version 2 or (at your option) any later version" __maintainer__ = "Stefan Hajnoczi" -__email__ = "[email protected]" +__email__ = "[email protected]" from tracetool import out
scripts/tracetool/format/tcg_helper_wrapper_h.py +1 -1
@@ -9,7 +9,7 @@ __copyright__ = "Copyright 2012-2016, Lluís Vilanova <[email protected]>" __license__ = "GPL version 2 or (at your option) any later version" __maintainer__ = "Stefan Hajnoczi" -__email__ = "[email protected]" +__email__ = "[email protected]" from tracetool import out
scripts/tracetool/transform.py +1 -1
@@ -9,7 +9,7 @@ __copyright__ = "Copyright 2012-2016, Lluís Vilanova <[email protected]>" __license__ = "GPL version 2 or (at your option) any later version" __maintainer__ = "Stefan Hajnoczi" -__email__ = "[email protected]" +__email__ = "[email protected]" def _transform_type(type_, trans):
scripts/tracetool/vcpu.py +1 -1
@@ -10,7 +10,7 @@ __copyright__ = "Copyright 2016, Lluís Vilanova <[email protected]>" __license__ = "GPL version 2 or (at your option) any later version" __maintainer__ = "Stefan Hajnoczi" -__email__ = "[email protected]" +__email__ = "[email protected]" from tracetool import Arguments, try_import
Signature · 1 line
2.26.2
[PULL 2/2] trace/simple: Fix unauthorized enable
In reply to Stefan HajnocziFrom: Markus Armbruster <[email protected]>
st_set_trace_file() accidentally enables tracing. It's called unconditionally during startup, which is why QEMU built with the simple trace backend always writes a trace file "trace-$PID".
This has been broken for quite a while. I didn't track down the exact commit.
Fix st_set_trace_file() to restore the state.
Message-id: [email protected]
--- trace/simple.h | 2 +- trace/simple.c | 20 ++++++++++++++------ 2 files changed, 15 insertions(+), 7 deletions(-)
trace/simple.h +1 -1
@@ -12,7 +12,7 @@#define TRACE_SIMPLE_H void st_print_trace_file_status (void ); -void st_set_trace_file_enabled (bool enable); +bool st_set_trace_file_enabled (bool enable);void st_set_trace_file (const char *file);bool st_init (void );void st_flush_trace_buffer (void );
trace/simple.c +14 -6
@@ -302,10 +302,17 @@ static int st_write_event_mapping(void)return 0 ; } -void st_set_trace_file_enabled (bool enable) +/** +* Enable / disable tracing, return whether it was enabled. +* +* @enable: enable if %true, else disable. +*/ +bool st_set_trace_file_enabled (bool enable) { +bool was_enabled = trace_fp; +if (enable == !!trace_fp) { -return ;/* no change */ +return was_enabled;/* no change */ }/* Halt trace writeout */
@@ -323,14 +330,14 @@ void st_set_trace_file_enabled(bool enable) trace_fp =fopen (trace_file_name,"wb" );if (!trace_fp) { -return ; +return was_enabled; }if (fwrite (&header,sizeof header,1 , trace_fp) !=1 ||st_write_event_mapping () <0 ) {fclose (trace_fp); trace_fp =NULL ; -return ; +return was_enabled; }/* Resume trace writeout */
@@ -340,6 +347,7 @@ void st_set_trace_file_enabled(bool enable)fclose (trace_fp); trace_fp =NULL ; } +return was_enabled; }/**
@@ -350,7 +358,7 @@ void st_set_trace_file_enabled(bool enable)*/ void st_set_trace_file (const char *file) { -st_set_trace_file_enabled (false); +bool saved_enable =st_set_trace_file_enabled (false);g_free (trace_file_name);
@@ -361,7 +369,7 @@ void st_set_trace_file(const char *file) trace_file_name =g_strdup_printf ("%s" , file); } -st_set_trace_file_enabled (true); +st_set_trace_file_enabled (saved_enable); }void st_print_trace_file_status (void )
Signature · 1 line
2.26.2
The following changes since commit d88d5a3806d78dcfca648c62dae9d88d3e803bd2:
Merge remote-tracking branch 'remotes/philmd-gitlab/tags/renesas-hw-2020062=
2' into staging (2020-06-23 13:55:52 +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 db25d56c014aa1a96319c663e0a60346a223b31e:
trace/simple: Fix unauthorized enable (2020-06-24 11:21:00 +0100)
----------------------------------------------------------------
Pull request
----------------------------------------------------------------
Markus Armbruster (1):
trace/simple: Fix unauthorized enable
Philippe Mathieu-Daud=C3=A9 (1):
scripts/tracetool: Update maintainer email address
trace/simple.h | 2 +- trace/simple.c | 20 +++++++++++++------ scripts/tracetool.py | 2 +- scripts/tracetool/__init__.py | 2 +- scripts/tracetool/backend/__init__.py | 2 +- scripts/tracetool/backend/dtrace.py | 2 +- scripts/tracetool/backend/log.py | 2 +- scripts/tracetool/backend/simple.py | 2 +- scripts/tracetool/backend/ust.py | 2 +- scripts/tracetool/format/__init__.py | 2 +- scripts/tracetool/format/c.py | 2 +- scripts/tracetool/format/d.py | 2 +- scripts/tracetool/format/h.py | 2 +- scripts/tracetool/format/stap.py | 2 +- scripts/tracetool/format/tcg_h.py | 2 +- scripts/tracetool/format/tcg_helper_c.py | 2 +- scripts/tracetool/format/tcg_helper_h.py | 2 +- .../tracetool/format/tcg_helper_wrapper_h.py | 2 +- scripts/tracetool/transform.py | 2 +- scripts/tracetool/vcpu.py | 2 +- 20 files changed, 33 insertions(+), 25 deletions(-)
--=20
2.26.2
Peter Maydell
AppliedQuoted 8 lines · Stefan Hajnoczi
The following changes since commit
d88d5a3806d78dcfca648c62dae9d88d3e803bd2:Merge remote-tracking branch 'remotes/philmd-gitlab/tags/renesas-hw-2020062=
2' into staging (2020-06-23 13:55:52 +0100)are available in the Git repository at:
Quoted 9 lines
https://github.com/stefanha/qemu.git tags/tracing-pull-request
for you to fetch changes up to
db25d56c014aa1a96319c663e0a60346a223b31e:trace/simple: Fix unauthorized enable (2020-06-24 11:21:00 +0100)
----------------------------------------------------------------
Pull request
Applied, thanks.
Please update the changelog at https://wiki.qemu.org/ChangeLog/5.1
for any user-visible changes.
-- PMM