This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/10607] need way to protect sensitive tapset globals
- From: "mcermak at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sourceware dot org
- Date: Tue, 03 Nov 2015 08:25:29 +0000
- Subject: [Bug translator/10607] need way to protect sensitive tapset globals
- Auto-submitted: auto-generated
- References: <bug-10607-6586 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=10607
Martin Cermak <mcermak at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |mcermak at redhat dot com
Resolution|--- |FIXED
--- Comment #3 from Martin Cermak <mcermak at redhat dot com> ---
Can be done using private global variable introduced by PR19136:
=======
$ stap -e 'global gt=5; private pt=6; probe oneshot {println(gt, ",", pt)}'
5,6
$ stap -G gt=7 -e 'global gt=5; private pt=6; probe oneshot {println(gt, ",",
pt)}'
7,6
$ stap -G pt=7 -e 'global gt=5; private pt=6; probe oneshot {println(gt, ",",
pt)}'
ERROR: Couldn't insert module
'/tmp/stapJOEsIt/stap_c338a51e10d33545e0988128fc6f2e20_1117.ko': Unknown symbol
in module
WARNING: /usr/local/bin/staprun exited with status: 1
Pass 5: run failed. [man error::pass5]
$ stap --dyninst -G pt=7 -e 'global gt=5; private pt=6; probe oneshot
{println(gt, ",", pt)}'
stapdyn: WARNING: Ignoring unknown module option '__global_pt'
5,6
$
=======
Commit 1b9d316 extends the private.exp testcase to cover this scenario.
--
You are receiving this mail because:
You are the assignee for the bug.