From: David Smith <dsmith@redhat.com>
To: Gareth <academicgareth@gmail.com>, systemtap@sourceware.org
Subject: Re: user space probe in ubuntu 14.04
Date: Mon, 14 Sep 2015 16:29:00 -0000 [thread overview]
Message-ID: <55F6F5FF.70007@redhat.com> (raw)
In-Reply-To: <CAAhuP__SAU6zbKWEErX4-OeNO104_2m9Ni25wxZVU4UFnm2iEg@mail.gmail.com>
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)
next prev parent reply other threads:[~2015-09-14 16:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-14 14:54 Gareth
2015-09-14 16:29 ` David Smith [this message]
2015-09-15 3:46 ` Gareth
2015-09-15 6:18 ` Gareth
2015-09-15 14:35 ` Frank Ch. Eigler
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=55F6F5FF.70007@redhat.com \
--to=dsmith@redhat.com \
--cc=academicgareth@gmail.com \
--cc=systemtap@sourceware.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).