Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!decwrl!apple!rutgers!att!cbnewsl!sar0 From: sar0@cbnewsl.att.com (stephen.a.rago) Newsgroups: comp.unix.wizards Subject: Re: I_FDINSERT in streamio(4) Summary: use a module Message-ID: <1990Aug13.172058.8018@cbnewsl.att.com> Date: 13 Aug 90 17:20:58 GMT References: Organization: AT&T Bell Laboratories Lines: 16 In article , ws@tools.uucp (Wolfgang Solfrank) writes: > Currently I'm trying to write a trace module and/or driver for > streams tracing. I need it for easier testing and debugging of > a streams protocol stack we are developping here. I'd like to > let the traced driver/modules and the application as much alone > as possible. So I face the problem of duplicating all messages > that are sent thru the protocol stack to the trace application. > > How do I tell the trace driver what streams stack to intercept? Make the trace driver both a module and a driver, and push it on the stream in the place you'd like to debug. Use the module to log messages and use the driver to recover them. Steve Rago sar@attunix.att.com