This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug translator/10294] .statement("*@FILE:NNN-MMM") line-range probes broken


------- 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]