This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/10294] .statement("*@FILE:NNN-MMM") line-range probes broken
- From: "wenji dot huang at oracle dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 4 Aug 2009 09:35:48 -0000
- Subject: [Bug translator/10294] .statement("*@FILE:NNN-MMM") line-range probes broken
- References: <20090617221401.10294.fche@redhat.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- 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.