From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20273 invoked by alias); 5 Sep 2014 14:45:30 -0000 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 Received: (qmail 20225 invoked by uid 48); 5 Sep 2014 14:45:23 -0000 From: "mcermak at redhat dot com" To: systemtap@sourceware.org Subject: [Bug runtime/17352] New: probing by pid using --runtime=dyninst not having -x or -c set Date: Fri, 05 Sep 2014 14:45:00 -0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: systemtap X-Bugzilla-Component: runtime X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mcermak at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: systemtap at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-q3/txt/msg00229.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=17352 Bug ID: 17352 Summary: probing by pid using --runtime=dyninst not having -x or -c set Product: systemtap Version: unspecified Status: NEW Severity: normal Priority: P2 Component: runtime Assignee: systemtap at sourceware dot org Reporter: mcermak at redhat dot com CC: ajakop at redhat dot com, jistone at redhat dot com When probing by pid using the "probe process()" syntax and not having -x or -c specified, --runtime=dyninst mode complains about missing -x or -c switch and does not actually work: -------------------------------8<------------------------------------ 7.0 S x86_64 # cat test.c void nop() {}; int main() { while(!sleep(1)) nop(); return(0); } 7.0 S x86_64 # gcc -g test.c 7.0 S x86_64 # ./a.out & [3] 22364 7.0 S x86_64 # stap -ve 'probe process(22364).function("nop") {log("hit")}' Pass 1: parsed user script and 113 library script(s) using 218008virt/35320res/3048shr/32732data kb, in 160usr/10sys/164real ms. Pass 2: analyzed script: 1 probe(s), 1 function(s), 0 embed(s), 0 global(s) using 218800virt/36688res/3680shr/33524data kb, in 0usr/0sys/5real ms. Pass 3: translated to C into "/tmp/stapKiiPjT/stap_f9cb621ebc98e2e2c85401cabfef45cc_1093_src.c" using 219064virt/37288res/4072shr/33788data kb, in 10usr/40sys/57real ms. Pass 4: compiled C into "stap_f9cb621ebc98e2e2c85401cabfef45cc_1093.ko" in 1860usr/250sys/2124real ms. Pass 5: starting run. hit hit hit ^CPass 5: run completed in 20usr/60sys/3249real ms. 7.0 S x86_64 # stap --runtime=dyninst -ve 'probe process(22364).function("nop") {log("hit")}' Pass 1: parsed user script and 46 library script(s) using 191168virt/9052res/3024shr/5892data kb, in 30usr/0sys/33real ms. Pass 2: analyzed script: 1 probe(s), 1 function(s), 0 embed(s), 0 global(s) using 191432virt/9928res/3668shr/6156data kb, in 0usr/0sys/1real ms. Pass 3: translated to C into "/tmp/stapYU8fAJ/stap_44550b941b2325a0d3f7b68946033d80_1095_src.c" using 191696virt/10528res/4064shr/6420data kb, in 10usr/50sys/62real ms. Pass 4: compiled C into "stap_44550b941b2325a0d3f7b68946033d80_1095.so" in 600usr/20sys/633real ms. Pass 5: starting run. stapdyn: WARNING: process probes require a target (-c or -x) ^CPass 5: run completed in 0usr/10sys/14324real ms. 7.0 S x86_64 # -------------------------------8<------------------------------------ This actually breaks the process_by_pid.stp testcase on el7 and f20. -- You are receiving this mail because: You are the assignee for the bug.