[dtrace-discuss] Combining Two providers

Michael Schuster Michael.Schuster at Sun.COM
Tue Jan 30 00:21:01 PST 2007


Neelam wrote:
> Is it possible to combine more than one provider.
> 
> Say I want to trace the page outs while a process is holding adaptive locks. Is it possible to combine the two providers?

you need to be a bit more specific ... as Chip said, it's definitely 
possible to "combine" providers, but depending on what you actually want to 
do, this may look like:

provider1
{
	self->watchit=1;
}

provder2
/self->watchit==1/
{
	/* record data */
	self->watchit=0;
}

or

provider1,
provider2
{
	/* record data */
}

  ...

HTH
Michael
-- 
Michael Schuster
Sun Microsystems, Inc.


More information about the dtrace-discuss mailing list