From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 48744 invoked by alias); 3 Nov 2015 08:25:34 -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 48260 invoked by uid 48); 3 Nov 2015 08:25:29 -0000 From: "mcermak at redhat dot com" To: systemtap@sourceware.org Subject: [Bug translator/10607] need way to protect sensitive tapset globals Date: Tue, 03 Nov 2015 08:25:00 -0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: systemtap X-Bugzilla-Component: translator X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mcermak at redhat dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED 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_status cc resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-q4/txt/msg00079.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=3D10607 Martin Cermak changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |mcermak at redhat dot com Resolution|--- |FIXED --- Comment #3 from Martin Cermak --- Can be done using private global variable introduced by PR19136:=20 =3D=3D=3D=3D=3D=3D=3D $ stap -e 'global gt=3D5; private pt=3D6; probe oneshot {println(gt, ",", p= t)}' 5,6 $ stap -G gt=3D7 -e 'global gt=3D5; private pt=3D6; probe oneshot {println(= gt, ",", pt)}' 7,6 $ stap -G pt=3D7 -e 'global gt=3D5; private pt=3D6; probe oneshot {println(= gt, ",", pt)}' ERROR: Couldn't insert module '/tmp/stapJOEsIt/stap_c338a51e10d33545e0988128fc6f2e20_1117.ko': Unknown sy= mbol in module WARNING: /usr/local/bin/staprun exited with status: 1 Pass 5: run failed. [man error::pass5] $ stap --dyninst -G pt=3D7 -e 'global gt=3D5; private pt=3D6; probe oneshot {println(gt, ",", pt)}' stapdyn: WARNING: Ignoring unknown module option '__global_pt' 5,6 $ =3D=3D=3D=3D=3D=3D=3D Commit 1b9d316 extends the private.exp testcase to cover this scenario. --=20 You are receiving this mail because: You are the assignee for the bug.