* [Bug translator/9968] Share global variable between embedded C and script
[not found] <bug-9968-6586@http.sourceware.org/bugzilla/>
@ 2013-07-17 17:36 ` fche at redhat dot com
2016-01-06 22:00 ` flu at redhat dot com
1 sibling, 0 replies; 2+ messages in thread
From: fche at redhat dot com @ 2013-07-17 17:36 UTC (permalink / raw)
To: systemtap
http://sourceware.org/bugzilla/show_bug.cgi?id=9968
Frank Ch. Eigler <fche at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |fche at redhat dot com
--- Comment #1 from Frank Ch. Eigler <fche at redhat dot com> ---
A possible way of expressing this would be embedded-c pragmas that
synthesize the right kind of locking magic, plus a temporary collection
of STAP_GLOBAL_* macros to get/set identified scalars/maps.
global var
global var2
global var3
probe begin {
var[2] = "hogi"
var3 = 5
foo()
println(var2["hogi"])
exit()
}
function foo () %{
/* pragma:read:var */ /* pragma:write:var2 */ /* pragma:read:var3 */
const char* value = STAP_GLOBAL_var_get_is(2);
STAP_GLOBAL_var2_set_si(value, STAP_GLOBAL_var3_get());
%}
--
You are receiving this mail because:
You are the assignee for the bug.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug translator/9968] Share global variable between embedded C and script
[not found] <bug-9968-6586@http.sourceware.org/bugzilla/>
2013-07-17 17:36 ` [Bug translator/9968] Share global variable between embedded C and script fche at redhat dot com
@ 2016-01-06 22:00 ` flu at redhat dot com
1 sibling, 0 replies; 2+ messages in thread
From: flu at redhat dot com @ 2016-01-06 22:00 UTC (permalink / raw)
To: systemtap
https://sourceware.org/bugzilla/show_bug.cgi?id=9968
Felix Lu <flu at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |flu at redhat dot com
Resolution|--- |FIXED
--- Comment #2 from Felix Lu <flu at redhat dot com> ---
Added in commit 0af18f5aa4c71440ab25d6ae1.
--
You are receiving this mail because:
You are the assignee for the bug.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-01-06 22:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-9968-6586@http.sourceware.org/bugzilla/>
2013-07-17 17:36 ` [Bug translator/9968] Share global variable between embedded C and script fche at redhat dot com
2016-01-06 22:00 ` flu at redhat dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).