[dtrace-discuss] values from a struct

goinsane
2010-09-17T07:10:20Z

Hi,

I''d like to get values from the struct sockaddr_in which is passed to
accept . At the time of entry this struct has still no values. How could I
access the struct at return? The usage of arg0 seems useless, as this is a new
filedesriptor. Does the copyin at entry make sense at all?

fbt:sockfs:accept:entry
{
   newsock = (struct sockaddr_in*)copyin(arg1, arg2); */
}


fbt:sockfs:accept:return
{
  /* ???  */
}


thank you,

goinsane

Message was edited by: goinsane