public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
From: David Smith <dsmith@redhat.com>
To: maliubiao <maliubiao@gmail.com>
Cc: systemtap@sourceware.org
Subject: Re: probe point "process(PATH).function(*).return" not ready yet?
Date: Wed, 14 Aug 2013 13:34:00 -0000	[thread overview]
Message-ID: <520B8747.8080908@redhat.com> (raw)
In-Reply-To: <CAFiE4-4BZFRHTi=fr2LFFOFZHw+N7nHh+ywsWajswY26Uqb_DQ@mail.gmail.com>

On 08/14/2013 07:23 AM, maliubiao wrote:
> Code:
> probe process("../build/lpg").function("*").reutnr {
> printf("%s\n", probefunc());
> }
> Result:
> semantic error: while resolving probe point: identifier 'process' at
> hello.stp:8:7
>         source: probe process("../build/lpg").function("*").return {
>                       ^
> 
> semantic error: process return probes not available [man error::inode-uprobes]
> Pass 2: analysis failed.  [man error::pass2]
> 
> This probe point is in the systemtap language reference, what's wrong?
> thanks   .
> 

Here is a short history of uprobes (the feature that gives systemtap
user probes):

- original uprobes (with both function entry and return probes): RHEL5
era kernels (needs kernel utrace), in an external kernel module

- uprobes v2 (with both function entry and return probes): RHEL6 era
kernels (needs kernel utrace), in an external kernel module

- inode uprobes (with function entry probes): current kernels, doesn't
need kernel utrace, built into the kernel

Your kernel has inode uprobes, which doesn't support function return
probes yet. There have been some work in this area, but I don't believe
that functionality has quite made it into the kernel yet.

In the meantime, you might be able to switch to the dyninst runtime
(--runtime=dyninst or --dyninst). This is a new, somewhat experimental
runtime, that does probing purely in userspace. You won't be able to use
dyninst if your script uses any kernel probing features (like
'kernel.function').

-- 
David Smith
dsmith@redhat.com
Red Hat
http://www.redhat.com
256.217.0141 (direct)
256.837.0057 (fax)

  reply	other threads:[~2013-08-14 13:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-14 12:23 maliubiao
2013-08-14 13:34 ` David Smith [this message]
2013-08-16 15:34 ` 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=520B8747.8080908@redhat.com \
    --to=dsmith@redhat.com \
    --cc=maliubiao@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).