public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/libvirt] f44: Fix systemtap script
@ 2026-09-30 7:09
0 siblings, 0 replies; only message in thread
From: @ 2026-09-30 7:09 UTC (permalink / raw)
To: git-commits
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-30 7:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-30 7:09 [rpms/libvirt] f44: Fix systemtap script
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox