This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: user space probe in ubuntu 14.04
- From: Gareth <academicgareth at gmail dot com>
- To: David Smith <dsmith at redhat dot com>
- Cc: systemtap at sourceware dot org
- Date: Tue, 15 Sep 2015 11:46:04 +0800
- Subject: Re: user space probe in ubuntu 14.04
- Authentication-results: sourceware.org; auth=none
- References: <CAAhuP__SAU6zbKWEErX4-OeNO104_2m9Ni25wxZVU4UFnm2iEg at mail dot gmail dot com> <55F6F5FF dot 70007 at redhat dot com>
Thanks for your hint David
I have just installed mysql related dbgsym packages, but it still doesn't work:
http://paste.openstack.org/show/462299/
Btw the '^' at line 25 and line 30 is pointing at the 'p' of 'process'.
No more ideas now : (
On Tue, Sep 15, 2015 at 12:29 AM, David Smith <dsmith@redhat.com> wrote:
> On 09/14/2015 09:54 AM, Gareth wrote:
>> Hey guys
>>
>> What's the requirements for using systemtap in ubuntu 14.04 (kernel
>> version = 3.13)?
>>
>> I have installed kernel-image package and found many probes by 'stap
>> -l 'kernel.function("acpi_*")'. However I sill can't use
>> process("xxx").xxx
>>
>> I tried find online documents and I'm sure uprobe is enabled, utrace
>> is not. But that document said utrace is deprecated long time ago...
>>
>> My output is here: http://paste.openstack.org/show/461444/
>
> From your output, I see you are trying to use markers, since you did the
> following:
>
> probe process("/usr/sbin/mysqld").mark("query__start")
>
> So, the first thing to do is make sure that your /usr/sbin/mysqld was
> compiled with markers. Try the following:
>
> # readelf -n /usr/bin/mysql | fgrep Name
>
> If that works, try:
>
> # stap -l 'process("/usr/sbin/mysqld").mark("*")'
>
>
> --
> David Smith
> dsmith@redhat.com
> Red Hat
> http://www.redhat.com
> 256.217.0141 (direct)
> 256.837.0057 (fax)
--
Gareth
Cloud Computing, OpenStack, Distributed Storage, Fitness, Basketball
OpenStack contributor, kun_huang@freenode
My promise: if you find any spelling or grammar mistakes in my email
from Mar 1 2013, notify me
and I'll donate $1 or ï1 to an open organization you specify.