Skip to contentSkip to conversation

Support deeper version numbers (e.g. 2.0.4.x)

PATCH In review [email protected] 2 participants 6 messages Jan 26 – Jan 27

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 Support deeper version numbers (e.g. 2.0.4.x)

From: Eugene Loh <[email protected]>

---
 libdtrace/mkvers | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
libdtrace/mkvers +1 -1
index 6f9240320..087c09169 100755
@@ -10,7 +10,7 @@
 NF == 0 { next; }
 
 {
-	if (match($1, /^[1-9][0-9]*(\.[0-9]*){1,2}$/) == 0) {
+	if (match($1, /^[1-9][0-9]*(\.[0-9]*){1,3}$/) == 0) {
 		print "E: Invalid version string: " $1 >"/dev/stderr";
 		exit 1
 	}
Signature · 1 line
2.47.3
#1 lore raw

PATCH 2/2 Update NEWS and dtrace.spec for release 2.0.4.1

From: Eugene Loh <[email protected]>

---
 NEWS                    | 57 +++++++++++++++++++++++++++++++++++++++++
 dtrace.spec             | 15 +++++++++++
 libdtrace/versions.list |  1 +
 3 files changed, 73 insertions(+)
NEWS +57 -0
index 48ae0bdf6..9348c01e1 100644
@@ -1,3 +1,60 @@
+2.0.4.1-1 (Jan 26th, 2026)
+------------------------
+
+New features:
+
+ - Implement PID-specific uprobes.
+
+Bugfixes:
+
+ - Allocate the buffers BPF map to fit highest CPU id.
+
+ - Change the "stack skip" to 3 for fbt (fprobe) and rawtp providers.
+
+ - Fix prvname so that both rawfbt and fbt probes are seen.
+
+ - Do not convert "__" to "-" for stapsdt provider names.
+
+ - Fix printf formatting with non-monetary grouping chars.
+
+User-visible changes:
+
+ - Discontinue -xversion=V as an option.
+
+ - Support non-libctf environments for tcp.
+
+Internal changes:
+
+ - Fix some memory leaks.
+
+ - Refactor some code.
+
+Testsuite changes:
+
+ - Correct file permissions.
+
+ - Add ERROR clause to prevent hang from runtime error.
+
+Documentation changes:
+
+- Add the DTrace Tutorial to the git repo and install package.
+
+- Clean up formatting.
+
+- Add missing documentation:  trunc(), stapsdt, usdt.h include path.
+
+- Update sections: unimplemented functions, sdt provider.
+
+- Update LLM context files to forbid "if" statements.
+
+- Update README.md for RPM info.
+
+Build-time:
+
+ - Clean up .spec file.
+
+ - Add testsuite dependency for perl-Net-Ping
+
 2.0.4-1 (Oct 24th, 2025)
 ------------------------
 
dtrace.spec +15 -0
index 58925aeef..33cd4eb6e 100644
@@ -229,6 +229,21 @@ systemctl start dtprobed || :
 %{_libdir}/dtrace/testsuite
 
 %changelog
+* Mon Jan 26 2026 Eugene Loh <[email protected]> - 2.0.4.1-1
+- Implement PID-specific uprobes.
+- Allocate the buffers BPF map to fit highest CPU id.
+- Change the "stack skip" to 3 for fbt (fprobe) and rawtp providers.
+  [Orabug: 38776929]
+- Fix prvname so that both rawfbt and fbt probes are seen.
+  [Orabug: 38842114]
+- Do not convert "__" to "-" for stapsdt provider names.
+- Fix printf formatting with non-monetary grouping chars.
+  [Orabug: 30430270]
+- Discontinue -xversion=V as an option.  [Orabug: 38615307]
+- Add the DTrace Tutorial to the git repo and install package.
+- Add missing documentation:  trunc(), stapsdt, usdt.h include path.
+- Update LLM context files to forbid "if" statements.
+
 * Fri Oct 24 2025 Eugene Loh <[email protected]> - 2.0.4-1
 - TCP, UDP, and stapsdt providers implemented.  (Alan Maguire)
 - New learning materials:  the User's Guide in Markdown format,
libdtrace/versions.list +1 -0
index 8d858f0bd..29c95dd58 100644
@@ -66,3 +66,4 @@
 2.0.2	D API 2.0.2 Linux (BPF)
 2.0.3	D API 2.0.3 Linux (BPF)
 2.0.4	D API 2.0.4 Linux (BPF)
+2.0.4.1	D API 2.0.4.1 Linux (BPF)
Signature · 1 line
2.47.3
Reviewed-by on v1 2/2
#2 lore raw

Re: [PATCH 2/2] Update NEWS and dtrace.spec for release 2.0.4.1

Quoted 3 lines · On Mon, Jan 26, 2026 at 06:41:50PM -0500, [email protected] wrote:

From: Eugene Loh <[email protected]>

Quoted 109 lines
---
 NEWS                    | 57 +++++++++++++++++++++++++++++++++++++++++
 dtrace.spec             | 15 +++++++++++
 libdtrace/versions.list |  1 +
 3 files changed, 73 insertions(+)
NEWS +57 -0
index 48ae0bdf6..9348c01e1 100644
@@ -1,3 +1,60 @@
+2.0.4.1-1 (Jan 26th, 2026)
+------------------------
+
+New features:
+
+ - Implement PID-specific uprobes.
+
+Bugfixes:
+
+ - Allocate the buffers BPF map to fit highest CPU id.
+
+ - Change the "stack skip" to 3 for fbt (fprobe) and rawtp providers.
+
+ - Fix prvname so that both rawfbt and fbt probes are seen.
+
+ - Do not convert "__" to "-" for stapsdt provider names.
+
+ - Fix printf formatting with non-monetary grouping chars.
+
+User-visible changes:
+
+ - Discontinue -xversion=V as an option.
+
+ - Support non-libctf environments for tcp.
+
+Internal changes:
+
+ - Fix some memory leaks.
+
+ - Refactor some code.
+
+Testsuite changes:
+
+ - Correct file permissions.
+
+ - Add ERROR clause to prevent hang from runtime error.
+
+Documentation changes:
+
+- Add the DTrace Tutorial to the git repo and install package.
+
+- Clean up formatting.
+
+- Add missing documentation:  trunc(), stapsdt, usdt.h include path.
+
+- Update sections: unimplemented functions, sdt provider.
+
+- Update LLM context files to forbid "if" statements.
+
+- Update README.md for RPM info.
+
+Build-time:
+
+ - Clean up .spec file.
+
+ - Add testsuite dependency for perl-Net-Ping
+
 2.0.4-1 (Oct 24th, 2025)
 ------------------------
 
dtrace.spec +15 -0
index 58925aeef..33cd4eb6e 100644
@@ -229,6 +229,21 @@ systemctl start dtprobed || :
 %{_libdir}/dtrace/testsuite
 
 %changelog
+* Mon Jan 26 2026 Eugene Loh <[email protected]> - 2.0.4.1-1
+- Implement PID-specific uprobes.
+- Allocate the buffers BPF map to fit highest CPU id.
+- Change the "stack skip" to 3 for fbt (fprobe) and rawtp providers.
+  [Orabug: 38776929]
+- Fix prvname so that both rawfbt and fbt probes are seen.
+  [Orabug: 38842114]
+- Do not convert "__" to "-" for stapsdt provider names.
+- Fix printf formatting with non-monetary grouping chars.
+  [Orabug: 30430270]
+- Discontinue -xversion=V as an option.  [Orabug: 38615307]
+- Add the DTrace Tutorial to the git repo and install package.
+- Add missing documentation:  trunc(), stapsdt, usdt.h include path.
+- Update LLM context files to forbid "if" statements.
+
 * Fri Oct 24 2025 Eugene Loh <[email protected]> - 2.0.4-1
 - TCP, UDP, and stapsdt providers implemented.  (Alan Maguire)
 - New learning materials:  the User's Guide in Markdown format,
libdtrace/versions.list +1 -0
index 8d858f0bd..29c95dd58 100644
@@ -66,3 +66,4 @@
 2.0.2	D API 2.0.2 Linux (BPF)
 2.0.3	D API 2.0.3 Linux (BPF)
 2.0.4	D API 2.0.4 Linux (BPF)
+2.0.4.1	D API 2.0.4.1 Linux (BPF)
Signature · 1 line
2.47.3
Reviewed-by on v1 1/2
#3 lore raw
In reply to [email protected]
Quoted 3 lines · On Mon, Jan 26, 2026 at 06:41:49PM -0500, [email protected] wrote:

From: Eugene Loh <[email protected]>

Quoted 20 lines
---
 libdtrace/mkvers | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
libdtrace/mkvers +1 -1
index 6f9240320..087c09169 100755
@@ -10,7 +10,7 @@
 NF == 0 { next; }
 
 {
-	if (match($1, /^[1-9][0-9]*(\.[0-9]*){1,2}$/) == 0) {
+	if (match($1, /^[1-9][0-9]*(\.[0-9]*){1,3}$/) == 0) {
 		print "E: Invalid version string: " $1 >"/dev/stderr";
 		exit 1
 	}
Signature · 1 line
2.47.3
#4 lore raw
Quoted 6 lines · Kris Van Hees
Quoted 3 lines · On Mon, Jan 26, 2026 at 06:41:49PM -0500, [email protected] wrote:

From: Eugene Loh <[email protected]>

Woops, I was too hasty on this. More changes are needed... See the following:

        if (current) {
                $0 = versions[idx[n]];
                if ($3 == 0)
                        printf "%s.%s", $1, $2;
                else
                        printf "%s.%s.%s", $1, $2, $3;

                exit(0);
        }

Obviously, we need to account here also for the possibility of 4 digits, and then again in all the other places where we output version numbers.

Quoted 20 lines
Quoted 20 lines
---
 libdtrace/mkvers | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
libdtrace/mkvers +1 -1
index 6f9240320..087c09169 100755
@@ -10,7 +10,7 @@
 NF == 0 { next; }
 
 {
-	if (match($1, /^[1-9][0-9]*(\.[0-9]*){1,2}$/) == 0) {
+	if (match($1, /^[1-9][0-9]*(\.[0-9]*){1,3}$/) == 0) {
 		print "E: Invalid version string: " $1 >"/dev/stderr";
 		exit 1
 	}
Signature · 1 line
2.47.3
#5 lore raw

Actually, please ignore me :) I totally overlooked that DTrace only supports up to 3 digits for version numbers. Changing that would be a much larger change, and not necessarily worth doing.

I'd say we revert this patch as being incorrect in view of the established versioning scheme, and number the release currently being prepared as being 2.0.5.

Quoted 43 lines · Kris Van Hees
Quoted 6 lines · Kris Van Hees
Quoted 3 lines · On Mon, Jan 26, 2026 at 06:41:49PM -0500, [email protected] wrote:

From: Eugene Loh <[email protected]>

Woops, I was too hasty on this. More changes are needed... See the following:

        if (current) {
                $0 = versions[idx[n]];
                if ($3 == 0)
                        printf "%s.%s", $1, $2;
                else
                        printf "%s.%s.%s", $1, $2, $3;

                exit(0);
        }

Obviously, we need to account here also for the possibility of 4 digits, and then again in all the other places where we output version numbers.

Quoted 20 lines
Quoted 20 lines
---
 libdtrace/mkvers | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
libdtrace/mkvers +1 -1
index 6f9240320..087c09169 100755
@@ -10,7 +10,7 @@
 NF == 0 { next; }
 
 {
-	if (match($1, /^[1-9][0-9]*(\.[0-9]*){1,2}$/) == 0) {
+	if (match($1, /^[1-9][0-9]*(\.[0-9]*){1,3}$/) == 0) {
 		print "E: Invalid version string: " $1 >"/dev/stderr";
 		exit 1
 	}
Signature · 1 line
2.47.3