This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug translator/10607] need way to protect sensitive tapset globals


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]