This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: Hooking into systemtaps relay chanell
- From: Martin Hunt <hunt at redhat dot com>
- To: David Wilder <dwilder at us dot ibm dot com>
- Cc: systemTAP <systemtap at sources dot redhat dot com>
- Date: Wed, 02 May 2007 22:45:15 -0400
- Subject: Re: Hooking into systemtaps relay chanell
- Organization: Red Hat Inc.
- References: <4639180B.9010401@us.ibm.com>
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