[PATCH V3] tracing: install trace events file only if necessary

casantos@redhat.com posted 1 patch 1 year ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20230408001049.206563-1-casantos@redhat.com
Maintainers: Stefan Hajnoczi <stefanha@redhat.com>
There is a newer version of this series
trace/meson.build | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH V3] tracing: install trace events file only if necessary
Posted by casantos@redhat.com 1 year ago
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
---
 trace/meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/trace/meson.build b/trace/meson.build
index 8e80be895c..833bb57113 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