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]

Re: Hooking into systemtaps relay chanell


On Wed, 2007-05-02 at 16:00 -0700, David Wilder wrote:
> Is there anyway for a probe handler to be passed pointer to the relay 
> channel that systemtap is using to pass its data?
> 
> I have a bit of code that is written as part of a tap set, but is not 
> run as part of a probe.  I would like that code to write data into 
> systemtap's relay channel.   So, I need to find the address of the 
> channel at run time.  Is this possible?

Will _stp_reserve_bytes() do what you need? 

I am still tweaking our use of relayfs a bit.  Writing directly to a
relayfs channel bypassing the runtime IO functions will likely not work
well or might break in the near future.  If you can explain more what
you are trying to do I am sure we can work out a solution.
 
Martin



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