qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] meson: fix SystemTap Unknown variable "exe_name"
@ 2020-08-27 14:22 Stefan Hajnoczi
  2020-08-27 15:05 ` Paolo Bonzini
  0 siblings, 1 reply; 2+ messages in thread
From: Stefan Hajnoczi @ 2020-08-27 14:22 UTC (permalink / raw)
  To: qemu-devel; +Cc: Paolo Bonzini, Stefan Hajnoczi, Peter Maydell

The SystemTap tapset generation code used a stale variable name
'exe_name'. This caused the following meson error:

  Unknown variable "exe_name"

The variable should be exe['name']. This fixes ./configure
--enable-trace-backend=dtrace with SystemTap.

Reported-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
---
 meson.build | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/meson.build b/meson.build
index f0fe5f8799..f2aa5a7700 100644
--- a/meson.build
+++ b/meson.build
@@ -1029,14 +1029,14 @@ foreach target : target_dirs
 
     if 'CONFIG_TRACE_SYSTEMTAP' in config_host
       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': '.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'],
+        custom_target(exe['name'] + stp['ext'],
                       input: trace_events_all,
-                      output: exe_name + stp['ext'],
+                      output: exe['name'] + stp['ext'],
                       capture: true,
                       install: stp['install'],
                       install_dir: config_host['qemu_datadir'] / '../systemtap/tapset',
-- 
2.26.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] meson: fix SystemTap Unknown variable "exe_name"
  2020-08-27 14:22 [PATCH] meson: fix SystemTap Unknown variable "exe_name" Stefan Hajnoczi
@ 2020-08-27 15:05 ` Paolo Bonzini
  0 siblings, 0 replies; 2+ messages in thread
From: Paolo Bonzini @ 2020-08-27 15:05 UTC (permalink / raw)
  To: Stefan Hajnoczi; +Cc: Peter Maydell, qemu-devel

[-- Attachment #1: Type: text/plain, Size: 2001 bytes --]

I have sent the same patch. I CCed Peter but forgot you, sorry.

Paolo

Il gio 27 ago 2020, 16:23 Stefan Hajnoczi <stefanha@redhat.com> ha scritto:

> The SystemTap tapset generation code used a stale variable name
> 'exe_name'. This caused the following meson error:
>
>   Unknown variable "exe_name"
>
> The variable should be exe['name']. This fixes ./configure
> --enable-trace-backend=dtrace with SystemTap.
>
> Reported-by: Peter Maydell <peter.maydell@linaro.org>
> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
> ---
>  meson.build | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/meson.build b/meson.build
> index f0fe5f8799..f2aa5a7700 100644
> --- a/meson.build
> +++ b/meson.build
> @@ -1029,14 +1029,14 @@ foreach target : target_dirs
>
>      if 'CONFIG_TRACE_SYSTEMTAP' in config_host
>        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': '.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'],
> +        custom_target(exe['name'] + stp['ext'],
>                        input: trace_events_all,
> -                      output: exe_name + stp['ext'],
> +                      output: exe['name'] + stp['ext'],
>                        capture: true,
>                        install: stp['install'],
>                        install_dir: config_host['qemu_datadir'] /
> '../systemtap/tapset',
> --
> 2.26.2
>
>

[-- Attachment #2: Type: text/html, Size: 3160 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-08-27 15:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-27 14:22 [PATCH] meson: fix SystemTap Unknown variable "exe_name" Stefan Hajnoczi
2020-08-27 15:05 ` Paolo Bonzini

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).