* [PATCH V4] tracing: install trace events file only if necessary
@ 2023-04-08 1:04 casantos
2023-04-18 9:00 ` Daniel P. Berrangé
2023-04-18 19:22 ` Stefan Hajnoczi
0 siblings, 2 replies; 3+ messages in thread
From: casantos @ 2023-04-08 1:04 UTC (permalink / raw)
To: qemu-devel; +Cc: Carlos Santos
From: Carlos Santos <casantos@redhat.com>
It is not useful when configuring with --enable-trace-backends=nop.
Signed-off-by: Carlos Santos <casantos@redhat.com>
---
Changes v1->v2:
Install based on chosen trace backend, not on chosen emulators.
Changes v2->v3:
Add missing comma
Changes v3->v4:
Fix array comparison:
get_option('trace_backends') != [ 'nop' ]
not
get_option('trace_backends') != 'nop'
---
trace/meson.build | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/trace/meson.build b/trace/meson.build
index 8e80be895c..30b1d942eb 100644
--- a/trace/meson.build
+++ b/trace/meson.build
@@ -64,7 +64,7 @@ trace_events_all = custom_target('trace-events-all',
input: trace_events_files,
command: [ 'cat', '@INPUT@' ],
capture: true,
- install: true,
+ install: get_option('trace_backends') != [ 'nop' ],
install_dir: qemu_datadir)
if 'ust' in get_option('trace_backends')
--
2.31.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH V4] tracing: install trace events file only if necessary
2023-04-08 1:04 [PATCH V4] tracing: install trace events file only if necessary casantos
@ 2023-04-18 9:00 ` Daniel P. Berrangé
2023-04-18 19:22 ` Stefan Hajnoczi
1 sibling, 0 replies; 3+ messages in thread
From: Daniel P. Berrangé @ 2023-04-18 9:00 UTC (permalink / raw)
To: casantos, Stefan Hajnoczi; +Cc: qemu-devel
Copying Stefan as the trace subsystem maintainer
On Fri, Apr 07, 2023 at 10:04:10PM -0300, casantos@redhat.com wrote:
> From: Carlos Santos <casantos@redhat.com>
>
> It is not useful when configuring with --enable-trace-backends=nop.
>
> Signed-off-by: Carlos Santos <casantos@redhat.com>
> ---
> Changes v1->v2:
> Install based on chosen trace backend, not on chosen emulators.
> Changes v2->v3:
> Add missing comma
> Changes v3->v4:
> Fix array comparison:
> get_option('trace_backends') != [ 'nop' ]
> not
> get_option('trace_backends') != 'nop'
> ---
> trace/meson.build | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/trace/meson.build b/trace/meson.build
> index 8e80be895c..30b1d942eb 100644
> --- a/trace/meson.build
> +++ b/trace/meson.build
> @@ -64,7 +64,7 @@ trace_events_all = custom_target('trace-events-all',
> input: trace_events_files,
> command: [ 'cat', '@INPUT@' ],
> capture: true,
> - install: true,
> + install: get_option('trace_backends') != [ 'nop' ],
> install_dir: qemu_datadir)
>
> if 'ust' in get_option('trace_backends')
> --
> 2.31.1
>
>
With regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH V4] tracing: install trace events file only if necessary
2023-04-08 1:04 [PATCH V4] tracing: install trace events file only if necessary casantos
2023-04-18 9:00 ` Daniel P. Berrangé
@ 2023-04-18 19:22 ` Stefan Hajnoczi
1 sibling, 0 replies; 3+ messages in thread
From: Stefan Hajnoczi @ 2023-04-18 19:22 UTC (permalink / raw)
To: casantos; +Cc: qemu-devel
On Fri, 7 Apr 2023 at 21:05, <casantos@redhat.com> wrote:
>
> From: Carlos Santos <casantos@redhat.com>
>
> It is not useful when configuring with --enable-trace-backends=nop.
>
> Signed-off-by: Carlos Santos <casantos@redhat.com>
> ---
> Changes v1->v2:
> Install based on chosen trace backend, not on chosen emulators.
> Changes v2->v3:
> Add missing comma
> Changes v3->v4:
> Fix array comparison:
> get_option('trace_backends') != [ 'nop' ]
> not
> get_option('trace_backends') != 'nop'
> ---
> trace/meson.build | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Thanks, applied to my block-next tree:
https://gitlab.com/stefanha/qemu/-/commit/d0380c64b4002e6da3b6e205468030d9e76dcc4a
Stefan
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-04-18 19:23 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-08 1:04 [PATCH V4] tracing: install trace events file only if necessary casantos
2023-04-18 9:00 ` Daniel P. Berrangé
2023-04-18 19:22 ` Stefan Hajnoczi
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).