From: Mark Wielaard <mjw@redhat.com>
To: linux-kernel@vger.kernel.org
Subject: Re: Dual-licensing LTTng, marker and tracepoints under GPLv2+/LGPLv2.1+
Date: Mon, 29 Jun 2009 23:00:19 +0000 (UTC) [thread overview]
Message-ID: <loom.20090629T224818-688@post.gmane.org> (raw)
In-Reply-To: 20090624164909.GA20653@Krystal
Mathieu Desnoyers <compudj <at> krystal.dyndns.org> writes:
> * Frank Ch. Eigler (fche <at> redhat.com) wrote:
> > > [...]The goal is to permit this library, which includes the
> > > tracepoints, markers and LTTng features, to be used by userspace
> > > applications and libraries so they can add static instrumentation
> > > (as we currently do in the kernel). [...]
> >
> > Just in case you're not aware, some API prior art for this is the
> > dtrace sdt.h widget (already supported by systemtap), and of course
> > it has no similarity to the various kernel tracing APIs.
>
> Yep, we're aware of this. However, last time I checked, dtrace SDT used
> a breakpoint even for their userspace tracing, which has a way too large
> performance overhead for our needs.
You might want to check again. Although the systemtap sdt.h should be source
compatible with dtrace markers since it provides the same compile time
interfaces/macros (which is how systemtap support java hotspot probing for
example), it isn't tied to any implementation details. The default
implementation inserts a NOP that can be replaced by a breakpoint instruction.
But Stan Cox added variants that can use syscalls/utrace/kprobes which have
different performance overhead tradeoffs
(http://article.gmane.org/gmane.linux.systemtap/12667). This is an
implementation detail though since the source interfaces are the same. Just
recompiling your application and/or libraries against a newer version of the
sdt.h interfaces will automagically provide the different probe types.
Cheers,
Mark
prev parent reply other threads:[~2009-06-29 23:05 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <4A412702.80707@polymtl.ca>
[not found] ` <20090623191128.GA19010@Krystal>
[not found] ` <20090623191513.GA20253@Krystal>
2009-06-24 0:43 ` Dual-licensing LTTng, marker and tracepoints under GPLv2+/LGPLv2.1+ Mathieu Desnoyers
2009-06-24 8:33 ` Ingo Molnar
2009-06-24 14:14 ` Mathieu Desnoyers
2009-06-24 16:33 ` Frank Ch. Eigler
2009-06-24 16:49 ` Mathieu Desnoyers
2009-06-24 17:23 ` Paul E. McKenney
2009-06-29 23:00 ` Mark Wielaard [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=loom.20090629T224818-688@post.gmane.org \
--to=mjw@redhat.com \
--cc=linux-kernel@vger.kernel.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