diff --git a/src/Makefile.am b/src/Makefile.am index 4ce424e1b4..7289f24736 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -20,15 +20,9 @@ # here. List them against the individual XXX_la_CFLAGS targets # that actually use them. -BUILT_SOURCES = -if WITH_DTRACE_PROBES -tapset_DATA = -endif WITH_DTRACE_PROBES RPC_PROBE_FILES = -include locking/Makefile.inc.am include admin/Makefile.inc.am -include lxc/Makefile.inc.am # Keep this list synced with RPC_PROBE_FILES @@ -88,24 +82,3 @@ endif !WITH_REMOTE check-local: check-protocol \ check-admin .PHONY: check-protocol $(PROTOCOL_STRUCTS:structs=struct) - - -if WITH_DTRACE_PROBES - -BUILT_SOURCES += libvirt_functions.stp - -tapset_DATA += libvirt_functions.stp - -# Keep this list synced with PROTOCOL_STRUCTS -RPC_PROBE_FILES += $(srcdir)/rpc/virnetprotocol.x \ - $(srcdir)/rpc/virkeepaliveprotocol.x \ - $(srcdir)/remote/remote_protocol.x \ - $(srcdir)/remote/lxc_protocol.x \ - $(srcdir)/remote/qemu_protocol.x \ - $(srcdir)/admin/admin_protocol.x - -libvirt_functions.stp: $(RPC_PROBE_FILES) $(top_srcdir)/scripts/gensystemtap.py - $(AM_V_GEN)$(RUNUTF8) $(PYTHON) $(top_srcdir)/scripts/gensystemtap.py \ - $(RPC_PROBE_FILES) > $@ - -endif WITH_DTRACE_PROBES diff --git a/src/admin/meson.build b/src/admin/meson.build index 22ff27f401..419a5c528a 100644 --- a/src/admin/meson.build +++ b/src/admin/meson.build @@ -5,6 +5,8 @@ admin_driver_sources = [ admin_driver_protocol = files('admin_protocol.x') +rpc_probe_files += admin_driver_protocol + admin_driver_generated = [] admin_protocol_h = custom_target( diff --git a/src/locking/Makefile.inc.am b/src/locking/Makefile.inc.am deleted file mode 100644 index 285e73a6bf..0000000000 --- a/src/locking/Makefile.inc.am +++ /dev/null @@ -1,3 +0,0 @@ -# vim: filetype=automake - -RPC_PROBE_FILES += $(srcdir)/locking/lock_protocol.x diff --git a/src/locking/meson.build b/src/locking/meson.build index dbff78ca1b..5c49bc641f 100644 --- a/src/locking/meson.build +++ b/src/locking/meson.build @@ -1,5 +1,7 @@ lock_protocol = 'lock_protocol.x' +rpc_probe_files += files(lock_protocol) + lock_driver_sources = [ 'lock_manager.c', 'lock_driver_nop.c', diff --git a/src/lxc/Makefile.inc.am b/src/lxc/Makefile.inc.am deleted file mode 100644 index 564b3519bc..0000000000 --- a/src/lxc/Makefile.inc.am +++ /dev/null @@ -1,9 +0,0 @@ -# vim: filetype=automake - -if WITH_LXC - -if WITH_DTRACE_PROBES -RPC_PROBE_FILES += $(srcdir)/lxc/lxc_monitor_protocol.x -endif - -endif WITH_LXC diff --git a/src/lxc/meson.build b/src/lxc/meson.build index 22c8341fb0..07ae9230b3 100644 --- a/src/lxc/meson.build +++ b/src/lxc/meson.build @@ -13,6 +13,8 @@ lxc_driver_sources = [ lxc_monitor_protocol = files('lxc_monitor_protocol.x') +rpc_probe_files += lxc_monitor_protocol + lxc_monitor_protocol_generated = [] lxc_monitor_protocol_generated += custom_target( diff --git a/src/meson.build b/src/meson.build index 162b09667b..850a910089 100644 --- a/src/meson.build +++ b/src/meson.build @@ -84,6 +84,8 @@ if conf.has('WITH_DTRACE_PROBES') ) endif +rpc_probe_files = [] + # symbol files @@ -832,6 +834,21 @@ foreach sysconf : sysconf_files ) endforeach +if conf.has('WITH_DTRACE_PROBES') + custom_target( + 'libvirt_functions.stp', + input: rpc_probe_files, + output: 'libvirt_functions.stp', + command: [ + meson_python_prog, python3_prog.path(), gensystemtap_prog.path(), + '@INPUT@', + ], + capture: true, + install: true, + install_dir: systemtap_dir, + ) +endif + # Install empty directories diff --git a/src/remote/meson.build b/src/remote/meson.build index 53ad3a6173..ffd1fb14f3 100644 --- a/src/remote/meson.build +++ b/src/remote/meson.build @@ -37,6 +37,8 @@ foreach name : [ 'remote', 'qemu', 'lxc' ] genprotocol_prog, rpcgen_prog, '-c', '@INPUT@', '@OUTPUT@', ], ) + + rpc_probe_files += files(protocol_x) endforeach remote_daemon_sources = files( diff --git a/src/rpc/meson.build b/src/rpc/meson.build index 8f4372bb3e..d759fa21ae 100644 --- a/src/rpc/meson.build +++ b/src/rpc/meson.build @@ -45,6 +45,8 @@ foreach name : [ 'virnet', 'virkeepalive' ] genprotocol_prog, rpcgen_prog, '-c', '@INPUT@', '@OUTPUT@', ], ) + + rpc_probe_files += protocol_file endforeach rpc_server_sources = [