This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: Systemtap userspace probing: status and roadmap?
- From: "Stefano Doni" <stefano dot doni at gmail dot com>
- To: "Jim Keniston" <jkenisto at us dot ibm dot com>
- Cc: systemtap at sources dot redhat dot com
- Date: Wed, 5 Nov 2008 12:33:07 +0100
- Subject: Re: Systemtap userspace probing: status and roadmap?
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=erPKt0tniELu8a+0W5xGXwggeuVpwyXNeHtW4S1NbZU=; b=MmXjSRiszeVvGTwWWL1ZmOjMU3dF06dIG0qTYcSGFxPGNt4WZW+msoT+cPD6JRr9fw clBHkWi3+qh8N6Rbi8iHKHoT7WH9A6wUlYg0xv+3JwcuBi9rxZ0T7PD2FD3NvM9YrDHY bMcp3Fw8f3z/w1N67hF+l71SVQPB4XwkgAUZ4=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=MtlSEOpq6Ck7SHWnAJ8AmBrXheDP1RUn1vDa/R87j07S4EB+kllLqdzJwV8wXODmKG 6ENrcyM8LqEICzJZUc5kPOvqKuVyyRBM4iRXuG+W844Ekg5QiFZAr3VB3Kjrr4dneraL OmSjJ3uipBd/wcIfF4VdMpuZ404OkdySv570s=
- References: <4eda99c50811041019q46d51890j20a2befa72989633@mail.gmail.com> <4eda99c50811041031t4939eb5dpceaf925e15587635@mail.gmail.com> <1225833389.3666.47.camel@dyn9047018139.beaverton.ibm.com>
Hi Jim,
thanks for the reply.
Now the whole situation is more clear to me. I didn't know that
utrace/uprobe wasn't part of mainline kernel, I really look forward
for this to happen.
Is there any linux distro easy to try with that patches included?
Fedora 10? This way systemtap testing would be much easier in a VM,
for example.
Are there any plan to start the inclusion into mainline in the next
kernel releases?
Thanks
2008/11/4 Jim Keniston <jkenisto@us.ibm.com>:
> On Tue, 2008-11-04 at 19:31 +0100, Stefano Doni wrote:
>> Hi guys,
>> first of all let me thank you for the efforts you give on this
>> wonderful tool! I'm a great fan of this project and of this kind of
>> tools in general, since I have a passion for performance analysis,
>> testing and tuning. I often read that the you are willing to hear some
>> feedback about what user wants, so I thought it would be nice to ask
>> you some question and share some whishes that a user can have about
>> such a good tool.
>>
>> I would like to know what is the current status of Systemtap user
>> space probing and what is the future roadmap (if such a thing exists).
>> For example, man stapprobes in my Ubuntu Intrepid tells me that only
>> "early prototype support" for user space probing is available.
>
> SystemTap does user-space probing the same way it does kernel probing:
> by generating and inserting a kernel module that implements the desired
> implementation. Just as subsystems like kprobes and markers provide the
> infrastructure for kernel probing, utrace and uprobes provide the
> infrastructure for user-space probing. A SystemTap script can include
> both kernel and user-space probes.
>
> Utrace-based probes are described under the heading "USER-SPACE" in
> stapprobes(5). To probe a particular function or statement in a user
> program (i.e., using uprobes), you can do stuff like
> probe process("/path/to/executable").function("funcname") ...
> You can also probe function returns by adding ".return" to the probe
> specification.
>
> Uprobes depends on utrace. Neither utrace nor uprobes are in Linus's
> kernel. Utrace is included with RHEL 5, or you can get a utrace patch
> for your kernel.org kernel at http://people.redhat.com/roland/utrace/ .
> Uprobes is packaged with SystemTap, in runtime/uprobes*/; stap will
> automatically build and insert uprobes.ko if your script uses uprobes
> (but again, you must be running a utrace-enabled kernel).
>
> Our intention is certainly for utrace and uprobes to be accepted
> upstream eventually, but I won't try to predict how/when that will
> happen. Uprobes in particular is about to undergo some rework.
>
> Stap has been exploiting uprobes for only a few months, and we're still
> shaking out the bugs. In fact, the 2.6.27-compatible version of uprobes
> was added to SystemTap just this week. You're welcome to give it a try.
>
> Jim Keniston
> IBM Linux Technology Center
> uprobes maintainer
>
>