public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
From: Li Guanglei <guanglei@cn.ibm.com>
To: "Frank Ch. Eigler" <fche@redhat.com>
Cc: "systemtap@sourceware.org" <systemtap@sourceware.org>
Subject: Re: put probes on a specific line
Date: Wed, 11 Oct 2006 00:23:00 -0000	[thread overview]
Message-ID: <452C39F8.9030405@cn.ibm.com> (raw)
In-Reply-To: <y0m1wpgw2ef.fsf@ton.toronto.redhat.com>

Frank Ch. Eigler wrote:
> Li Guanglei <guanglei@cn.ibm.com> writes:
> 
>>    I ever thought that kernel.function("*@kernel/signal.c:734") will
>> put a probe on line 734. But after testing and reading the stapprobes
>> man page, that actually refers to any functions within the
>> "kernel/signal.c" file that span line 734, i.e, it equals to
>> kernel.function("send_signal"). So it seems to me the only way to put
>> probe on a specific line is to use kernel.statements(0x....). [...]
> 
> Not so: kernel.statement() accepts the same string-based specification
> of a probe point as kernel.function() does:
> 
>    kernel.statement("*@kernel/signal.c:734")
> 
> The "function" and "statement" terms are intentional and significant.
> 
> - FChE

Thanks. It works :)

      reply	other threads:[~2006-10-11  0:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-10  3:06 Li Guanglei
2006-10-10 16:40 ` Frank Ch. Eigler
2006-10-11  0:23   ` Li Guanglei [this message]

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=452C39F8.9030405@cn.ibm.com \
    --to=guanglei@cn.ibm.com \
    --cc=fche@redhat.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).