This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug tapsets/18942] New: any script will include all the globals from tapset/argv.stp
- From: "dsmith at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sourceware dot org
- Date: Wed, 09 Sep 2015 15:40:16 +0000
- Subject: [Bug tapsets/18942] New: any script will include all the globals from tapset/argv.stp
- Auto-submitted: auto-generated
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.