public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
From: "wenji dot huang at oracle dot com" <sourceware-bugzilla@sourceware.org>
To: systemtap@sources.redhat.com
Subject: [Bug translator/10294] .statement("*@FILE:NNN-MMM") line-range probes broken
Date: Tue, 04 Aug 2009 09:36:00 -0000	[thread overview]
Message-ID: <20090804093548.20563.qmail@sourceware.org> (raw)
In-Reply-To: <20090617221401.10294.fche@redhat.com>


------- Additional Comments From wenji dot huang at oracle dot com  2009-08-04 09:35 -------
Created an attachment (id=4110)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=4110&action=view)
patch

With the patch, stap can allow the PC out of function in 
exploring probe points for line range if current function 
matches pattern.

$ ./stap -p2 -e 'probe process("./stap").statement("*@main.cxx:375")
{print(1)}' 
# probes
process("/home/wjhuang/systemtap/stap").statement("main@/home/wjhuang/systemtap/main.cxx:375")
/* pc=.absolute+0x805066d */ /* <-
process("./stap").statement("*@main.cxx:375") */

$ ./stap -p2 -e 'probe
process("./stap").statement("*@main.cxx:375-375"){print(1)}' 
# probes
process("/home/wjhuang/systemtap/stap").statement("main@/home/wjhuang/systemtap/main.cxx:375")
/* pc=.absolute+0x805066d */ /* <-
process("./stap").statement("*@main.cxx:375-375") */

When the line range covers more than two functions.
$ ./stap -p2 -e 'probe process("../test").statement("*@test.c:7-10")
{print(1)}'
# probes
process("/home/wjhuang/test").statement("func_a@/home/wjhuang/test.c:7") /*
pc=.absolute+0x80483ce */ /* <- process("../test").statement("*@test.c:7-10")
*/
process("/home/wjhuang/test").statement("main@/home/wjhuang/test.c:10") /*
pc=.absolute+0x80483d0 */ /* <- process("../test").statement("*@test.c:7-10")
*/

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=10294

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

  parent reply	other threads:[~2009-08-04  9:36 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-17 22:14 [Bug translator/10294] New: " fche at redhat dot com
2009-08-04  8:17 ` [Bug translator/10294] " wenji dot huang at oracle dot com
2009-08-04  9:36 ` wenji dot huang at oracle dot com [this message]
2009-08-05 19:18 ` fche at redhat dot com
2009-08-06  9:10 ` wenji dot huang at oracle dot com
2009-09-04 17:46 ` fche at redhat dot com

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=20090804093548.20563.qmail@sourceware.org \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=systemtap@sources.redhat.com \
    /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).