From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28308 invoked by alias); 9 Sep 2015 15:40:25 -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 28254 invoked by uid 48); 9 Sep 2015 15:40:17 -0000 From: "dsmith at redhat dot com" To: systemtap@sourceware.org Subject: [Bug tapsets/18942] New: any script will include all the globals from tapset/argv.stp Date: Wed, 09 Sep 2015 15:40:00 -0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: systemtap X-Bugzilla-Component: tapsets X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dsmith at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: 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 target_milestone 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: 2015-q3/txt/msg00118.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=18942 Bug ID: 18942 Summary: any script will include all the globals from tapset/argv.stp Product: systemtap Version: unspecified Status: NEW Severity: normal Priority: P2 Component: tapsets Assignee: systemtap at sourceware dot org Reporter: dsmith at redhat dot com Target Milestone: --- This is on RHEL7, but most likely happen everywhere: ==== # stap -vp4 -e 'probe syscall.read { printf("%s, %s\n", name, argstr) }' Pass 1: parsed user script and 113 library script(s) using 214560virt/32056res/2944shr/29492data kb, in 670usr/30sys/707real ms. Pass 2: analyzed script: 2 probe(s), 5 function(s), 94 embed(s), 33 global(s) using 250360virt/68808res/3864shr/65292data kb, in 1200usr/140sys/1339real ms. Pass 3: translated to C into "/tmp/stapYRq5dD/stap_ec359b719647ca1ded86300ca3d447f0_56028_src.c" using 250360virt/69188res/4244shr/65292data kb, in 30usr/80sys/111real ms. /home/dsmith/.systemtap/cache/ec/stap_ec359b719647ca1ded86300ca3d447f0_56028.ko Pass 4: compiled C into "stap_ec359b719647ca1ded86300ca3d447f0_56028.ko" in 11730usr/2230sys/13771real ms. ==== Notice the "Pass 2" line reports the use of 33 globals. Looking at the pass 2 output, here are the global variables it is compiling in: ==== # globals argv[32]:string [long] argv_1:string argv_2:string argv_3:string argv_4:string argv_5:string argv_6:string argv_7:string argv_8:string argv_9:string argv_10:string argv_11:string argv_12:string argv_13:string argv_14:string argv_15:string argv_16:string argv_17:string argv_18:string argv_19:string argv_20:string argv_21:string argv_22:string argv_23:string argv_24:string argv_25:string argv_26:string argv_27:string argv_28:string argv_29:string argv_30:string argv_31:string argv_32:string ==== Since these global variables aren't actually used, they should not be included in the module. -- You are receiving this mail because: You are the assignee for the bug.