[dtrace-discuss] values from a struct

goinsane
2010-09-17T13:34:43Z

Yes, you''re right, the manpage expresses this, too.
But how to get the value? copyin returns the address of the scratch buffer.
could this be used as argument of the 2nd copyin of fbt:sockfs:accept:return ?

fbt:sockfs:accept:entry
{
    self->sockaddr = arg1;
    self->socklen  = (int*)copyin(arg2, 4);
 }

fbt:sockfs:accept:return
{
   self->sockcont = (struct sockaddr_in*)copyin(self->sockaddr,
self->socklen);
}


Unforntunately, I'' m getting an error within the 1st probe:

dtrace: error on enabled probe ID 1 (ID 28356: fbt:sockfs:accept:entry): invalid
address (0x0) in action #2 at DIF offset 52