Linux DTrace development list
 help / color / mirror / Atom feed
From: Kris Van Hees <kris.van.hees@oracle.com>
To: Sam James <sam@gentoo.org>
Cc: Alan Maguire via DTrace-devel <dtrace-devel@oss.oracle.com>,
	Kris Van Hees <kris.van.hees@oracle.com>,
	Alan Maguire <alan.maguire@oracle.com>,
	dtrace@lists.linux.dev
Subject: Re: [DTrace-devel] [PATCH v2 0/4] ELF note-based USDT support
Date: Sat, 7 Jun 2025 23:08:29 -0400	[thread overview]
Message-ID: <aET+rchgHHTRE4mt@oracle.com> (raw)
In-Reply-To: <87ikl7uhzn.fsf@gentoo.org>

On Sun, Jun 08, 2025 at 02:42:04AM +0100, Sam James wrote:
> Alan Maguire via DTrace-devel <dtrace-devel@oss.oracle.com> writes:
> 
> > On 29/01/2025 15:33, Kris Van Hees wrote:
> >> Thank you for rebasing your work on the newest tree.  That will certainly
> >> help review them and move things forward.
> >> 
> >> I would definitely rework the commit message though, because
> >> 
> >> 1. DTrace has a specific understanding of what USDT probes are and how they
> >>    work and stap-based probes do not provide the same functionality.  One
> >>    example of that you already point ay: they are not discoverable - i.e.
> >>    they are not registered upon startup which is why you need to refer to
> >>    them directly by provider name (with embedded pid).  I think you need to
> >>    be very clear about the distinction.  Using STAPSDT or stapsdt might be
> >>    a better choice than referring to USDT.
> >>
> >
> > sure; I'll use stapsdt.
> >
> >> 2. I think that the commit message fails to highlight that this support is
> >>    to make it possible to trace programs (and shared librearies)that have been 
> >>    built with stap style probes.  I don't think it is in the best interest of
> >>    DTrace users to build their executables and shared libraries with stap
> >>    style probes over DTrace USDT probes, especially given the significant
> >>    advantage that DTrace USDT probes have (see 1. above).
> >> > 3. While I can see the point of mentioning how to add stapsdt probes to
> >>    code, it also is a source for confusion and thus is probably better left
> >>    out.  Since this is a compability feature, surely those wanting to use it
> >>    already have executables with such probes or know how to create them.
> >>    By including it here, you also introduce the very unfortunate fact that
> >>    stapsdt uses DTRACE_PROBE*() macros even though the probes have never really
> >>    been DTrace compatible, and it is only with your proposed patch now that
> >>    they could be used in DTrace.  The systemtap project shouldn't have
> >>    piggy-backed on DTRACE_PROBE*() in the first place because it causes this
> >>    type of confusion and complications, so I would very much prefer not to
> >>    highlight that mess with this patch series.
> >> 
> >> The stap probe support is very significant because we unfortunately do have to
> >> live with a world where there are multiple ways that such userspace probes
> >> have been implemented.  And given that packages are released with probes and
> >> people may want to trace them makes this addition certainly very worthwhile.
> >> But I think it should be clear that this is for compatibilty/interoperability
> >> purposes only.
> >> 
> >
> > Sounds good, I'll rework the patches accordingly.
> 
> Any update on this? I'd really love to start wiring up support for these
> in packages. I guess it interacts heavily with the work Kris has been
> doing on making LTO work with USDT though?

Yes, the USDT rework I actually just completed is a pre-condition of getting
support for stapsdt probes in DTrace.  With the new USDT approach in place,
this series can be revisited and adjusted to make use of what I introduced.

	Kris

      reply	other threads:[~2025-06-08  3:09 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-29 14:55 [PATCH v2 0/4] ELF note-based USDT support Alan Maguire
2025-01-29 14:55 ` [PATCH v2 1/4] USDT: support ELF-note-defined probes Alan Maguire
2025-01-29 14:55 ` [PATCH v2 2/4] selftests/usdt: add test for USDT note-defined probe firing, args Alan Maguire
2025-01-29 14:55 ` [PATCH v2 3/4] selftests/usdt: add test for USDT notes in shared library Alan Maguire
2025-01-29 14:55 ` [PATCH v2 4/4] selftests/usdt: add test covering different forms of USDT note args Alan Maguire
2025-01-29 15:33 ` [PATCH v2 0/4] ELF note-based USDT support Kris Van Hees
2025-01-30 11:12   ` Alan Maguire
2025-06-08  1:42     ` [DTrace-devel] " Sam James
2025-06-08  3:08       ` Kris Van Hees [this message]

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=aET+rchgHHTRE4mt@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=sam@gentoo.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