This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug dyninst/15053] stapdyn needs -G (setting global variables) support
- From: "jistone at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sourceware dot org
- Date: Wed, 23 Jan 2013 00:58:44 +0000
- Subject: [Bug dyninst/15053] stapdyn needs -G (setting global variables) support
- Auto-submitted: auto-generated
- References: <bug-15053-6586@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=15053
--- Comment #2 from Josh Stone <jistone at redhat dot com> 2013-01-23 00:58:44 UTC ---
(In reply to comment #1)
> It may also be slightly tricky to juggle the static global-initialization,
> which must happen after shared memory init, versus the dynamic -G values, which
> still need to be set before any begin probes.
One possibility for this is to have the initialization in an actual C-global
variable again, and have -G overwrite that early on, much the same as globals
work in kernel mode. Then when we're initializing the "real" global in shared
memory, we'd pull its starting value from that C-global.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.