This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: [Ksummit-2008-discuss] DTrace
- From: "Frank Ch. Eigler" <fche at redhat dot com>
- To: Christoph Hellwig <hch at lst dot de>
- Cc: ksummit-2008-discuss at lists dot linux-foundation dot org, systemtap at sources dot redhat dot com, utrace-devel at redhat dot com
- Date: Mon, 30 Jun 2008 13:12:46 -0400
- Subject: Re: [Ksummit-2008-discuss] DTrace
- References: <20080627150424.GB14894@parisc-linux.org> <1214580213.3394.40.camel@localhost.localdomain> <20080627155018.GC14894@parisc-linux.org> <1214583502.7698.15.camel@weaponx> <20080627163056.GB1416@lst.de> <20080628072605.GA505@in.ibm.com> <20080629084002.GA24131@lst.de> <20080630051034.GA4970@in.ibm.com> <20080630112913.GA18817@lst.de>
Hi -
On Mon, Jun 30, 2008 at 01:29:13PM +0200, Christoph Hellwig wrote:
> [...] This might be getting a little offtopic for the kernel summit
> discuss list, but let's start anyway, we can move this to a better
> suited list, although I can't think of one except for linux-kernel.
systemtap@sources.redhat.com
utrace-devel@redhat.com
> I'm not sure if that's the current design, but I can't find any
> evidence in the code that it allows running handlers in process
> context, all that's available is a kernel callback. [...]
For systemtap's purposes, that is sufficient. Our probes are meant to
run non-intrusively (they do not mess with user thread scheduling,
their VM state, strictly limited time & space consumption), so
actually injecting equivalent snippets of code into userspace for
execution there does not seem to buy anything. Plus, like dtrace, we
want scripts to be able to intermix probes (=> share data) amongst
kernel and multiple user-space threads, and this seems most naturally
done by running the probes themselves in kernel space.
> [...] What we really need is a userspace interface so that it
> actually can be used by thing like frysk or an implementation of the
> userspace dtrace hooks.
That will get built as other tools require it. Systemtap per se will
likely not.
> [...] For complex traces doing this in userspace is for sure a better idea.
Can you elaborate upon this more complex scenario?
- FChE