From: Eugene Loh <eugene.loh@oracle.com>
To: Kris Van Hees <kris.van.hees@oracle.com>,
dtrace@lists.linux.dev, dtrace-devel@oss.oracle.com
Subject: Re: [PATCH 4/4] options: discontinue -xversion=V as a valid option
Date: Thu, 18 Dec 2025 15:22:47 -0500 [thread overview]
Message-ID: <ff96c7e8-da13-0b5d-5a80-7bd5ac690248@oracle.com> (raw)
In-Reply-To: <DS0PR10MB752231FDE310C37F66EEEB83C2ABA@DS0PR10MB7522.namprd10.prod.outlook.com>
Okay, but there must surely be test-suite changes. At the very least:
* test/unittest/version/err.1.1.d The err.* tests should not simply
fail; they should fail for the correct reason.
* test/unittest/version/tst.1.0.d
Maybe nothing else???
On 12/17/25 00:10, Kris Van Hees wrote:
> DTrace allowed setting a previous version to operate in compatibility
> mode. Unfortunately, it was not fully implemented. Translators are
> not really versioned, and if a translator uses an identifier that does
> not exist in the version specified in -xversion=V, data structures end
> up corrupted.
>
> Since the usefulness of -xversion=V seems to be less than the effort
> needed to rectify the implementation, we are no longer supporting this
> option.
>
> Signed-off-by: Kris Van Hees <kris.van.hees@oracle.com>
> ---
> libdtrace/dt_options.c | 14 ++------------
> 1 file changed, 2 insertions(+), 12 deletions(-)
>
> diff --git a/libdtrace/dt_options.c b/libdtrace/dt_options.c
> index 97516517..0a35e852 100644
> --- a/libdtrace/dt_options.c
> +++ b/libdtrace/dt_options.c
> @@ -24,6 +24,7 @@
> #include <dt_pcap.h>
> #include <dt_string.h>
> #include <libproc.h>
> +#include <port.h>
>
> static int
> dt_opt_agg(dtrace_hdl_t *dtp, const char *arg, uintptr_t option)
> @@ -676,18 +677,7 @@ dt_opt_invcflags(dtrace_hdl_t *dtp, const char *arg, uintptr_t option)
> static int
> dt_opt_version(dtrace_hdl_t *dtp, const char *arg, uintptr_t option)
> {
> - dt_version_t v;
> -
> - if (arg == NULL)
> - return dt_set_errno(dtp, EDT_BADOPTVAL);
> -
> - if (dt_version_str2num(arg, &v) == -1)
> - return dt_set_errno(dtp, EDT_VERSINVAL);
> -
> - if (!dt_version_defined(v))
> - return dt_set_errno(dtp, EDT_VERSUNDEF);
> -
> - return dt_reduce(dtp, v);
> + return dt_set_errno(dtp, ENOTSUPP);
> }
>
> static int
next prev parent reply other threads:[~2025-12-18 20:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-17 5:10 [PATCH 4/4] options: discontinue -xversion=V as a valid option Kris Van Hees
2025-12-18 17:16 ` [DTrace-devel] " Alan Maguire
2025-12-18 20:22 ` Eugene Loh [this message]
2025-12-18 20:24 ` Kris Van Hees
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=ff96c7e8-da13-0b5d-5a80-7bd5ac690248@oracle.com \
--to=eugene.loh@oracle.com \
--cc=dtrace-devel@oss.oracle.com \
--cc=dtrace@lists.linux.dev \
--cc=kris.van.hees@oracle.com \
/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