From: Kris Van Hees <kris.van.hees@oracle.com>
To: Eugene Loh <eugene.loh@oracle.com>
Cc: Alan Maguire <alan.maguire@oracle.com>,
dtrace@lists.linux.dev, dtrace-devel@oss.oracle.com
Subject: Re: [DTrace-devel] [PATCH 1/5] udp: new provider
Date: Thu, 28 Aug 2025 15:40:20 -0400 [thread overview]
Message-ID: <aLCwpNHT1m0EwXW2@oracle.com> (raw)
In-Reply-To: <b186d562-5dd9-d564-487d-d0e91d78b23a@oracle.com>
On Thu, Aug 28, 2025 at 03:25:39PM -0400, Eugene Loh wrote:
> On 8/28/25 13:56, Eugene Loh wrote:
>
> > Anyhow, testing x86 and arm for OL8/UEK6 OL8/UEK7 OL9/UEK7 OL9/UEK8
> > OL10/UEK8, I get
> > test/unittest/udp/tst.ipv6localudp.sh: FAIL: expected results differ.
> > for
> > x86/OL8/UEK7
> > x86/OL9/UEK7
> > x86/OL9/UEK8
> > x86/OL10/UEK8
> > arm/OL10/UEK8
> > If you like, I can investigate more or report more details. I just
> > didn't want to dive in too deep without checking in with you first.
>
> I took a quick and sloppy look at this. I looked at only one VM. The
> failure was:
>
> test/unittest/udp/tst.ipv6localudp.sh
> Diff against expected:
> Minimum UDP events seen
>
> -ip:::send - yes
> +ip:::send - no
> -ip:::receive - yes
> +ip:::receive - no
> -udp:::send - yes
> +udp:::send - no
> udp:::receive - yes
>
> I tried:
>
> diff --git a/libdtrace/dt_prov_udp.c b/libdtrace/dt_prov_udp.c
> @@ -31,7 +31,7 @@ static probe_dep_t probes[] = {
> { "send",
> DTRACE_PROBESPEC_NAME, "fbt::ip_send_skb:entry" },
> { "send",
> - DTRACE_PROBESPEC_NAME, "fbt::ip6_send_skb:entry" },
> + DTRACE_PROBESPEC_NAME, "rawfbt::ip6_send_skb:entry" },
> { NULL, }
> };
>
> diff --git a/libdtrace/dt_prov_ip.c b/libdtrace/dt_prov_ip.c
> @@ -21,11 +21,11 @@ static probe_dep_t probes[] = {
> { "receive",
> DTRACE_PROBESPEC_NAME, "fbt::ip_local_deliver:entry" },
> { "receive",
> - DTRACE_PROBESPEC_NAME, "fbt::ip6_input:entry" },
> + DTRACE_PROBESPEC_NAME, "rawfbt::ip6_input:entry" },
> { "send",
> DTRACE_PROBESPEC_NAME, "fbt::ip_finish_output:entry" },
> { "send",
> - DTRACE_PROBESPEC_NAME, "fbt::ip6_finish_output:entry" },
> + DTRACE_PROBESPEC_NAME, "rawfbt::ip6_finish_output:entry" },
> { NULL, }
> };
>
> (The last change is also in another patch I recently posted and you R-b.)
> With these changes on that VM, the test passes.
>
> The whole thing suggests to me that we need a better audit of such issues,
> better understanding, and more/better tests.
It might also be worth mentioning that it is possible to specify kernel version
range constraints for probes to be used so that DTrace can determine at runtime
which probes to enable. That and code in the trampoline (or in functions it
uses) to do the "right" thing depend on the probe being used is often enough
to deal with variants.
next prev parent reply other threads:[~2025-08-28 19:40 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-22 18:16 [PATCH 0/5] udp provider Alan Maguire
2025-08-22 18:16 ` [PATCH 1/5] udp: new provider Alan Maguire
2025-08-28 17:56 ` [DTrace-devel] " Eugene Loh
2025-08-28 19:25 ` Eugene Loh
2025-08-28 19:40 ` Kris Van Hees [this message]
2025-08-29 7:58 ` Alan Maguire
2025-08-22 18:16 ` [PATCH 2/5] dlibs: sync dlibs with libdtrace/udp.d Alan Maguire
2025-08-28 18:03 ` [DTrace-devel] " Eugene Loh
2025-08-22 18:16 ` [PATCH 3/5] unittest/udp: update test.x now that udp provider is present Alan Maguire
2025-08-28 18:06 ` Eugene Loh
2025-08-22 18:16 ` [PATCH 4/5] test/unittest/udp: enable IPv4 remote udp test Alan Maguire
2025-08-28 18:14 ` [DTrace-devel] " Eugene Loh
2025-08-22 18:16 ` [PATCH 5/5] test: Add udp to expecetd providers Alan Maguire
2025-08-28 18:16 ` [DTrace-devel] " Eugene Loh
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=aLCwpNHT1m0EwXW2@oracle.com \
--to=kris.van.hees@oracle.com \
--cc=alan.maguire@oracle.com \
--cc=dtrace-devel@oss.oracle.com \
--cc=dtrace@lists.linux.dev \
--cc=eugene.loh@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.