[Bug translator/10294] .statement("*@FILE:NNN-MMM") line-range probes broken
wenji dot huang at oracle dot com
sourceware-bugzilla@sourceware.org
Tue Aug 4 09:36:00 GMT 2009
------- 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.
More information about the Systemtap
mailing list