[libvirt] [PATCH v5 08/23] src: rewrite systemtap probe generator in Python

Ján Tomko jtomko at redhat.com
Wed Nov 20 06:20:25 UTC 2019


On Mon, Nov 11, 2019 at 02:38:11PM +0000, Daniel P. Berrangé wrote:
>As part of an goal to eliminate Perl from libvirt build tools,
>rewrite the dtrace2systemtap.pl tool in Python.
>
>This was a straight conversion, manually going line-by-line to
>change the syntax from Perl to Python. Thus the overall structure
>of the file and approach is the same.
>
>Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
>---
> Makefile.am                 |   1 +
> scripts/dtrace2systemtap.py | 143 ++++++++++++++++++++++++++++++++++++
> src/Makefile.am             |  10 +--
> src/dtrace2systemtap.pl     | 130 --------------------------------
> 4 files changed, 147 insertions(+), 137 deletions(-)
> create mode 100755 scripts/dtrace2systemtap.py
> delete mode 100755 src/dtrace2systemtap.pl
>
>diff --git a/src/Makefile.am b/src/Makefile.am
>index 929eef784c..085c193013 100644
>--- a/src/Makefile.am
>+++ b/src/Makefile.am
>@@ -530,7 +530,6 @@ if WITH_DTRACE_PROBES
> libvirt_la_BUILT_LIBADD += libvirt_probes.lo
> libvirt_la_DEPENDENCIES += libvirt_probes.lo libvirt_probes.o
> nodist_libvirt_la_SOURCES = libvirt_probes.h
>-DTRACE2SYSTEMTAP_FLAGS = --with-modules

Dropping the (now implied) --with-modules flag deserves a mention in the
commit message.

>
> BUILT_SOURCES += libvirt_probes.h libvirt_probes.stp libvirt_functions.stp
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20191120/14afe22f/attachment-0001.sig>


More information about the libvir-list mailing list