* [PULL 0/2] Tracing patches @ 2024-03-12 19:01 Stefan Hajnoczi 2024-03-12 19:01 ` [PULL 1/2] tracetool: remove redundant --target-type / --target-name args Stefan Hajnoczi ` (2 more replies) 0 siblings, 3 replies; 10+ messages in thread From: Stefan Hajnoczi @ 2024-03-12 19:01 UTC (permalink / raw) To: qemu-devel Cc: Paolo Bonzini, Mads Ynddal, Cleber Rosa, Philippe Mathieu-Daudé, Thomas Huth, Marc-André Lureau, Stefan Hajnoczi, Daniel P. Berrangé, John Snow The following changes since commit 8f3f329f5e0117bd1a23a79ab751f8a7d3471e4b: Merge tag 'migration-20240311-pull-request' of https://gitlab.com/peterx/qemu into staging (2024-03-12 11:35:41 +0000) are available in the Git repository at: https://gitlab.com/stefanha/qemu.git tags/tracing-pull-request for you to fetch changes up to 2b608e16ca00017509fa2a211b7b49aacdedb760: meson: generate .stp files for tools too (2024-03-12 14:52:07 -0400) ---------------------------------------------------------------- Pull request ---------------------------------------------------------------- Daniel P. Berrangé (2): tracetool: remove redundant --target-type / --target-name args meson: generate .stp files for tools too docs/devel/tracing.rst | 3 +- meson.build | 63 +++++++++++++++++++++++++++--------------- scripts/tracetool.py | 24 ++++------------ 3 files changed, 46 insertions(+), 44 deletions(-) -- 2.44.0 ^ permalink raw reply [flat|nested] 10+ messages in thread
* [PULL 1/2] tracetool: remove redundant --target-type / --target-name args 2024-03-12 19:01 [PULL 0/2] Tracing patches Stefan Hajnoczi @ 2024-03-12 19:01 ` Stefan Hajnoczi 2024-03-12 19:01 ` [PULL 2/2] meson: generate .stp files for tools too Stefan Hajnoczi 2024-03-13 15:10 ` [PULL 0/2] Tracing patches Peter Maydell 2 siblings, 0 replies; 10+ messages in thread From: Stefan Hajnoczi @ 2024-03-12 19:01 UTC (permalink / raw) To: qemu-devel Cc: Paolo Bonzini, Mads Ynddal, Cleber Rosa, Philippe Mathieu-Daudé, Thomas Huth, Marc-André Lureau, Stefan Hajnoczi, Daniel P. Berrangé, John Snow From: Daniel P. Berrangé <berrange@redhat.com> The --target-type and --target-name args are used to construct the default probe prefix if '--probe-prefix' is not given. The meson.build will always pass '--probe-prefix', so the other args are effectively redundant. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> Reviewed-by: John Snow <jsnow@redhat.com> Message-id: 20240108171356.1037059-2-berrange@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> --- docs/devel/tracing.rst | 3 +-- meson.build | 2 -- scripts/tracetool.py | 24 +++++------------------- 3 files changed, 6 insertions(+), 23 deletions(-) diff --git a/docs/devel/tracing.rst b/docs/devel/tracing.rst index d288480db1..043bed7fd0 100644 --- a/docs/devel/tracing.rst +++ b/docs/devel/tracing.rst @@ -357,8 +357,7 @@ probes:: scripts/tracetool.py --backends=dtrace --format=stap \ --binary path/to/qemu-binary \ - --target-type system \ - --target-name x86_64 \ + --probe-prefix qemu.system.x86_64 \ --group=all \ trace-events-all \ qemu.stp diff --git a/meson.build b/meson.build index f9dbe7634e..b8d40d7c0a 100644 --- a/meson.build +++ b/meson.build @@ -3991,8 +3991,6 @@ foreach target : target_dirs command: [ tracetool, '--group=all', '--format=' + stp['fmt'], '--binary=' + stp['bin'], - '--target-name=' + target_name, - '--target-type=' + target_type, '--probe-prefix=qemu.' + target_type + '.' + target_name, '@INPUT@', '@OUTPUT@' ], diff --git a/scripts/tracetool.py b/scripts/tracetool.py index ab7653a5ce..5de9ce96d3 100755 --- a/scripts/tracetool.py +++ b/scripts/tracetool.py @@ -44,12 +44,9 @@ def error_opt(msg = None): --help This help message. --list-backends Print list of available backends. --check-backends Check if the given backend is valid. - --binary <path> Full path to QEMU binary. - --target-type <type> QEMU emulator target type ('system' or 'user'). - --target-name <name> QEMU emulator target name. - --group <name> Name of the event group - --probe-prefix <prefix> Prefix for dtrace probe names - (default: qemu-<target-type>-<target-name>).\ + --binary <path> Full path to QEMU binary (required for 'stap' backend). + --group <name> Name of the event group. + --probe-prefix <prefix> Prefix for dtrace probe names (required for 'stap' backend). """ % { "script" : _SCRIPT, "backends" : backend_descr, @@ -67,7 +64,7 @@ def main(args): long_opts = ["backends=", "format=", "help", "list-backends", "check-backends", "group="] - long_opts += ["binary=", "target-type=", "target-name=", "probe-prefix="] + long_opts += ["binary=", "probe-prefix="] try: opts, args = getopt.getopt(args[1:], "", long_opts) @@ -79,8 +76,6 @@ def main(args): arg_format = "" arg_group = None binary = None - target_type = None - target_name = None probe_prefix = None for opt, arg in opts: if opt == "--help": @@ -102,10 +97,6 @@ def main(args): elif opt == "--binary": binary = arg - elif opt == '--target-type': - target_type = arg - elif opt == '--target-name': - target_name = arg elif opt == '--probe-prefix': probe_prefix = arg @@ -127,13 +118,8 @@ def main(args): if arg_format == "stap": if binary is None: error_opt("--binary is required for SystemTAP tapset generator") - if probe_prefix is None and target_type is None: - error_opt("--target-type is required for SystemTAP tapset generator") - if probe_prefix is None and target_name is None: - error_opt("--target-name is required for SystemTAP tapset generator") - if probe_prefix is None: - probe_prefix = ".".join(["qemu", target_type, target_name]) + error_opt("--probe-prefix is required for SystemTAP tapset generator") if len(args) < 2: error_opt("missing trace-events and output filepaths") -- 2.44.0 ^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PULL 2/2] meson: generate .stp files for tools too 2024-03-12 19:01 [PULL 0/2] Tracing patches Stefan Hajnoczi 2024-03-12 19:01 ` [PULL 1/2] tracetool: remove redundant --target-type / --target-name args Stefan Hajnoczi @ 2024-03-12 19:01 ` Stefan Hajnoczi 2024-03-13 15:10 ` [PULL 0/2] Tracing patches Peter Maydell 2 siblings, 0 replies; 10+ messages in thread From: Stefan Hajnoczi @ 2024-03-12 19:01 UTC (permalink / raw) To: qemu-devel Cc: Paolo Bonzini, Mads Ynddal, Cleber Rosa, Philippe Mathieu-Daudé, Thomas Huth, Marc-André Lureau, Stefan Hajnoczi, Daniel P. Berrangé, John Snow, Eric Blake From: Daniel P. Berrangé <berrange@redhat.com> The qemu-img, qemu-io, qemu-nbd, qemu-storage-daemon tools all have support for systemtap tracing built-in, so should be given corresponding .stp files to define their probes. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-id: 20240108171356.1037059-3-berrange@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> --- meson.build | 61 +++++++++++++++++++++++++++++++++++------------------ 1 file changed, 40 insertions(+), 21 deletions(-) diff --git a/meson.build b/meson.build index b8d40d7c0a..520f862d7b 100644 --- a/meson.build +++ b/meson.build @@ -3808,6 +3808,7 @@ if host_os == 'darwin' entitlement = find_program('scripts/entitlement.sh') endif +traceable = [] emulators = {} foreach target : target_dirs config_target = config_target_mak[target] @@ -3976,27 +3977,11 @@ foreach target : target_dirs emulators += {exe['name']: emulator} endif - if stap.found() - foreach stp: [ - {'ext': '.stp-build', 'fmt': 'stap', 'bin': meson.current_build_dir() / exe['name'], 'install': false}, - {'ext': '.stp', 'fmt': 'stap', 'bin': get_option('prefix') / get_option('bindir') / exe['name'], 'install': true}, - {'ext': '-simpletrace.stp', 'fmt': 'simpletrace-stap', 'bin': '', 'install': true}, - {'ext': '-log.stp', 'fmt': 'log-stap', 'bin': '', 'install': true}, - ] - custom_target(exe['name'] + stp['ext'], - input: trace_events_all, - output: exe['name'] + stp['ext'], - install: stp['install'], - install_dir: get_option('datadir') / 'systemtap/tapset', - command: [ - tracetool, '--group=all', '--format=' + stp['fmt'], - '--binary=' + stp['bin'], - '--probe-prefix=qemu.' + target_type + '.' + target_name, - '@INPUT@', '@OUTPUT@' - ], - depend_files: tracetool_depends) - endforeach - endif + traceable += [{ + 'exe': exe['name'], + 'probe-prefix': 'qemu.' + target_type + '.' + target_name, + }] + endforeach endforeach @@ -4031,6 +4016,14 @@ if have_tools install: true) subdir('storage-daemon') + + foreach exe: [ 'qemu-img', 'qemu-io', 'qemu-nbd', 'qemu-storage-daemon'] + traceable += [{ + 'exe': exe, + 'probe-prefix': 'qemu.' + exe.substring(5).replace('-', '_') + }] + endforeach + subdir('contrib/rdmacm-mux') subdir('contrib/elf2dmp') @@ -4063,6 +4056,32 @@ if have_tools endif endif +if stap.found() + foreach t: traceable + foreach stp: [ + {'ext': '.stp-build', 'fmt': 'stap', 'bin': meson.current_build_dir() / t['exe'], 'install': false}, + {'ext': '.stp', 'fmt': 'stap', 'bin': get_option('prefix') / get_option('bindir') / t['exe'], 'install': true}, + {'ext': '-simpletrace.stp', 'fmt': 'simpletrace-stap', 'bin': '', 'install': true}, + {'ext': '-log.stp', 'fmt': 'log-stap', 'bin': '', 'install': true}, + ] + cmd = [ + tracetool, '--group=all', '--format=' + stp['fmt'], + '--binary=' + stp['bin'], + '--probe-prefix=' + t['probe-prefix'], + '@INPUT@', '@OUTPUT@' + ] + + custom_target(t['exe'] + stp['ext'], + input: trace_events_all, + output: t['exe'] + stp['ext'], + install: stp['install'], + install_dir: get_option('datadir') / 'systemtap/tapset', + command: cmd, + depend_files: tracetool_depends) + endforeach + endforeach +endif + subdir('scripts') subdir('tools') subdir('pc-bios') -- 2.44.0 ^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PULL 0/2] Tracing patches 2024-03-12 19:01 [PULL 0/2] Tracing patches Stefan Hajnoczi 2024-03-12 19:01 ` [PULL 1/2] tracetool: remove redundant --target-type / --target-name args Stefan Hajnoczi 2024-03-12 19:01 ` [PULL 2/2] meson: generate .stp files for tools too Stefan Hajnoczi @ 2024-03-13 15:10 ` Peter Maydell 2 siblings, 0 replies; 10+ messages in thread From: Peter Maydell @ 2024-03-13 15:10 UTC (permalink / raw) To: Stefan Hajnoczi Cc: qemu-devel, Paolo Bonzini, Mads Ynddal, Cleber Rosa, Philippe Mathieu-Daudé, Thomas Huth, Marc-André Lureau, Daniel P. Berrangé, John Snow On Tue, 12 Mar 2024 at 19:04, Stefan Hajnoczi <stefanha@redhat.com> wrote: > > The following changes since commit 8f3f329f5e0117bd1a23a79ab751f8a7d3471e4b: > > Merge tag 'migration-20240311-pull-request' of https://gitlab.com/peterx/qemu into staging (2024-03-12 11:35:41 +0000) > > are available in the Git repository at: > > https://gitlab.com/stefanha/qemu.git tags/tracing-pull-request > > for you to fetch changes up to 2b608e16ca00017509fa2a211b7b49aacdedb760: > > meson: generate .stp files for tools too (2024-03-12 14:52:07 -0400) > > ---------------------------------------------------------------- > Pull request > Applied, thanks. Please update the changelog at https://wiki.qemu.org/ChangeLog/9.0 for any user-visible changes. -- PMM ^ permalink raw reply [flat|nested] 10+ messages in thread
* [PULL 0/2] Tracing patches @ 2020-06-24 10:49 Stefan Hajnoczi 2020-06-25 14:27 ` Peter Maydell 0 siblings, 1 reply; 10+ messages in thread From: Stefan Hajnoczi @ 2020-06-24 10:49 UTC (permalink / raw) To: qemu-devel Cc: Peter Maydell, Eduardo Habkost, Gerd Hoffmann, Stefan Hajnoczi, Cleber Rosa, Paolo Bonzini 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 ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PULL 0/2] Tracing patches 2020-06-24 10:49 Stefan Hajnoczi @ 2020-06-25 14:27 ` Peter Maydell 0 siblings, 0 replies; 10+ messages in thread From: Peter Maydell @ 2020-06-25 14:27 UTC (permalink / raw) To: Stefan Hajnoczi Cc: Paolo Bonzini, Cleber Rosa, Gerd Hoffmann, QEMU Developers, Eduardo Habkost On Wed, 24 Jun 2020 at 11:49, Stefan Hajnoczi <stefanha@redhat.com> wrote: > > 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 > Applied, thanks. Please update the changelog at https://wiki.qemu.org/ChangeLog/5.1 for any user-visible changes. -- PMM ^ permalink raw reply [flat|nested] 10+ messages in thread
* [PULL 0/2] Tracing patches @ 2019-10-14 8:57 Stefan Hajnoczi 2019-10-15 12:24 ` Peter Maydell 0 siblings, 1 reply; 10+ messages in thread From: Stefan Hajnoczi @ 2019-10-14 8:57 UTC (permalink / raw) To: qemu-devel Cc: Fam Zheng, Peter Maydell, qemu-block, Jason Wang, Stefan Hajnoczi, Paolo Bonzini 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(-) -- 2.21.0 ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PULL 0/2] Tracing patches 2019-10-14 8:57 Stefan Hajnoczi @ 2019-10-15 12:24 ` Peter Maydell 2019-10-15 15:38 ` Philippe Mathieu-Daudé 0 siblings, 1 reply; 10+ messages in thread From: Peter Maydell @ 2019-10-15 12:24 UTC (permalink / raw) To: Stefan Hajnoczi Cc: Fam Zheng, Qemu-block, Jason Wang, QEMU Developers, Paolo Bonzini On Mon, 14 Oct 2019 at 09:57, Stefan Hajnoczi <stefanha@redhat.com> wrote: > > 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 > Applied, thanks. Please update the changelog at https://wiki.qemu.org/ChangeLog/4.2 for any user-visible changes. -- PMM ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PULL 0/2] Tracing patches 2019-10-15 12:24 ` Peter Maydell @ 2019-10-15 15:38 ` Philippe Mathieu-Daudé 2019-10-15 15:42 ` Peter Maydell 0 siblings, 1 reply; 10+ messages in thread From: Philippe Mathieu-Daudé @ 2019-10-15 15:38 UTC (permalink / raw) To: Peter Maydell, Stefan Hajnoczi Cc: Fam Zheng, Paolo Bonzini, Jason Wang, QEMU Developers, Qemu-block On 10/15/19 2:24 PM, Peter Maydell wrote: > On Mon, 14 Oct 2019 at 09:57, Stefan Hajnoczi <stefanha@redhat.com> wrote: >> >> 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 >> > > > Applied, thanks. Buh, v2 missed :( ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PULL 0/2] Tracing patches 2019-10-15 15:38 ` Philippe Mathieu-Daudé @ 2019-10-15 15:42 ` Peter Maydell 0 siblings, 0 replies; 10+ messages in thread From: Peter Maydell @ 2019-10-15 15:42 UTC (permalink / raw) To: Philippe Mathieu-Daudé Cc: Fam Zheng, Qemu-block, Jason Wang, QEMU Developers, Stefan Hajnoczi, Paolo Bonzini On Tue, 15 Oct 2019 at 16:38, Philippe Mathieu-Daudé <philmd@redhat.com> wrote: > > On 10/15/19 2:24 PM, Peter Maydell wrote: > > On Mon, 14 Oct 2019 at 09:57, Stefan Hajnoczi <stefanha@redhat.com> wrote: > >> > >> 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 > >> > > > > > > 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 ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2024-03-13 15:11 UTC | newest] Thread overview: 10+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2024-03-12 19:01 [PULL 0/2] Tracing patches Stefan Hajnoczi 2024-03-12 19:01 ` [PULL 1/2] tracetool: remove redundant --target-type / --target-name args Stefan Hajnoczi 2024-03-12 19:01 ` [PULL 2/2] meson: generate .stp files for tools too Stefan Hajnoczi 2024-03-13 15:10 ` [PULL 0/2] Tracing patches Peter Maydell -- strict thread matches above, loose matches on Subject: below -- 2020-06-24 10:49 Stefan Hajnoczi 2020-06-25 14:27 ` Peter Maydell 2019-10-14 8:57 Stefan Hajnoczi 2019-10-15 12:24 ` Peter Maydell 2019-10-15 15:38 ` Philippe Mathieu-Daudé 2019-10-15 15:42 ` Peter Maydell
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).