public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/libvirt] f44: Fix systemtap script
Date: Wed, 30 Sep 2026 07:09:46 GMT [thread overview]
Message-ID: <179075218633.1.8905180801755241291.rpms-libvirt-be40d6fb8dba@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/libvirt
Branch : f44
Commit : be40d6fb8dbad9230df23091748b1399bc354f7e
Author : Daniel P. Berrangé <berrange@redhat.com>
Date : 2026-09-30T08:05:16+01:00
Stats : +48/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/libvirt/c/be40d6fb8dbad9230df23091748b1399bc354f7e?branch=f44
Log:
Fix systemtap script
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
---
diff --git a/0001-scripts-avoid-matching-char-as-string-for-systemtap.patch b/0001-scripts-avoid-matching-char-as-string-for-systemtap.patch
new file mode 100644
index 0000000..5f50636
--- /dev/null
+++ b/0001-scripts-avoid-matching-char-as-string-for-systemtap.patch
@@ -0,0 +1,42 @@
+From cb33103c4afbce68134be112ecc5d0251e542650 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= <berrange@redhat.com>
+Date: Mon, 16 Feb 2026 10:00:48 +0000
+Subject: [PATCH] scripts: avoid matching 'char **' as string for systemtap
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+From: Daniel P. Berrangé <berrange@redhat.com>
+
+When a probe argument is declared "char *" we reference the userspace
+string value using 'user_string(...)' for systemtap.
+
+Unfortunately our code generator also matches on args declared "char **"
+and generates bogus code
+
+ *cert = user_string($arg4);
+
+which is a syntax error for systemtap.
+
+Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
+Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
+---
+ scripts/dtrace2systemtap.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/scripts/dtrace2systemtap.py b/scripts/dtrace2systemtap.py
+index 506db9c503..361dab1075 100755
+--- a/scripts/dtrace2systemtap.py
++++ b/scripts/dtrace2systemtap.py
+@@ -124,7 +124,7 @@ for file in filelist:
+ for idx in range(len(argbits)):
+ arg = argbits[idx]
+ isstr = False
+- if 'char *' in arg:
++ if re.match(r'''.*char\s\*[^\*].*''', arg) is not None:
+ isstr = True
+
+ m = re.search(r'''^.*\s\*?(\S+)$''', arg)
+--
+2.55.0
+
diff --git a/libvirt.spec b/libvirt.spec
index 1a79df8..8c1a79c 100644
--- a/libvirt.spec
+++ b/libvirt.spec
@@ -295,7 +295,7 @@
Summary: Library providing a simple virtualization API
Name: libvirt
Version: 12.0.0
-Release: 3%{?dist}
+Release: 4%{?dist}
License: GPL-2.0-or-later AND LGPL-2.1-only AND LGPL-2.1-or-later AND OFL-1.1
URL: https://libvirt.org/
@@ -307,6 +307,8 @@ Source: https://download.libvirt.org/%{?mainturl}libvirt-%{version}.tar.xz
# Fix IPv6 connections to ESXi
# Upstream in > 12.0.0
Patch: 0001-esx-Allow-connecting-to-IPv6-server.patch
+# Fix systemtap types
+Patch: 0001-scripts-avoid-matching-char-as-string-for-systemtap.patch
Requires: libvirt-daemon = %{version}-%{release}
Requires: libvirt-daemon-config-network = %{version}-%{release}
@@ -2695,6 +2697,9 @@ exit 0
%changelog
+* Thu Jan 15 2026 Daniel P. Berrangé <berrange@redhat.com> - 12.0.0-4
+- Backport fix for systemtap probes (rhbz#2432568)
+
* Mon Jan 26 2026 Richard W.M. Jones <rjones@redhat.com> - 12.0.0-3
- Backport fix for IPv6 connections to ESXi
reply other threads:[~2026-09-30 7:09 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179075218633.1.8905180801755241291.rpms-libvirt-be40d6fb8dba@fedoraproject.org \
--to=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox