Bug 14491 - Add a proper stapdyn transport layer
Summary: Add a proper stapdyn transport layer
Status: RESOLVED FIXED
Alias: None
Product: systemtap
Classification: Unclassified
Component: dyninst (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Josh Stone
URL:
Keywords:
Depends on:
Blocks: 14178 15029 15083 15110
  Show dependency treegraph
 
Reported: 2012-08-18 01:51 UTC by Josh Stone
Modified: 2013-04-26 17:19 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Josh Stone 2012-08-18 01:51:23 UTC
Right now there's not transport layer at all in stapdyn.  Communication is only going stapdyn->module via inferior calls, and script output is writing directly on the target's stdout/err.

We really need a means for bidirectional communication, both for control messages and for general script output.  For a first draft, I propose listening on a socket in stapdyn, opening that in the target with an inferior call, and then send messages just as we do with staprun and kernel modules.
Comment 1 Josh Stone 2012-10-11 17:05:45 UTC
Commit f1ae3f04 made a related tweak - we're now using duped fds for out/err so that the target's manipulation of stdout and stderr doesn't directly affect us.

Another possibility for implementing the transport is using libdyninstAPI_RT's DYNINSTuserMessage for mutatee->mutator communication.  For mutator->mutatee, we might just stick with oneTimeCode snippets, which are somewhat slow, but we only need them occasionally.
Comment 2 David Smith 2013-04-26 17:19:31 UTC
Transport added in commit 8ca891c.