From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20635 invoked by alias); 4 Aug 2009 09:36:01 -0000 Received: (qmail 20564 invoked by uid 48); 4 Aug 2009 09:35:48 -0000 Date: Tue, 04 Aug 2009 09:36:00 -0000 Message-ID: <20090804093548.20563.qmail@sourceware.org> From: "wenji dot huang at oracle dot com" To: systemtap@sources.redhat.com In-Reply-To: <20090617221401.10294.fche@redhat.com> References: <20090617221401.10294.fche@redhat.com> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug translator/10294] .statement("*@FILE:NNN-MMM") line-range probes broken X-Bugzilla-Reason: AssignedTo Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org X-SW-Source: 2009-q3/txt/msg00278.txt.bz2 ------- 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.