0003-tracing-install-trace-events-file-only-if-necessary.patch 1.2 KB

123456789101112131415161718192021222324252627282930
  1. From 5c43da1e4983cc3c209b325a5228b6149e0a0ccf Mon Sep 17 00:00:00 2001
  2. From: Carlos Santos <casantos@redhat.com>
  3. Date: Fri, 24 Mar 2023 21:40:22 -0300
  4. Subject: [PATCH] tracing: install trace events file only if necessary
  5. It is not useful when configuring with --enable-trace-backends=nop.
  6. Upstream: https://patchwork.kernel.org/project/qemu-devel/patch/20230408010410.281263-1-casantos@redhat.com/
  7. Signed-off-by: Carlos Santos <casantos@redhat.com>
  8. Signed-off-by: Carlos Santos <unixmania@gmail.com>
  9. ---
  10. trace/meson.build | 2 +-
  11. 1 file changed, 1 insertion(+), 1 deletion(-)
  12. diff --git a/trace/meson.build b/trace/meson.build
  13. index 8e80be895c..30b1d942eb 100644
  14. --- a/trace/meson.build
  15. +++ b/trace/meson.build
  16. @@ -64,7 +64,7 @@ trace_events_all = custom_target('trace-events-all',
  17. input: trace_events_files,
  18. command: [ 'cat', '@INPUT@' ],
  19. capture: true,
  20. - install: true,
  21. + install: get_option('trace_backends') != [ 'nop' ],
  22. install_dir: qemu_datadir)
  23. if 'ust' in get_option('trace_backends')
  24. --
  25. 2.31.1