Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

dtrace problem with sendmsg

13 views
Skip to first unread message

adirtymindisajoyforever

unread,
Oct 20, 2012, 8:51:59 AM10/20/12
to
hi,

I try to display the content of the sendmsg buffer:

fbt:sockfs:sendmsg:entry
/execname == "msgsend"/
{
self->msghdr = arg1;
msghdrp = (struct msghdr *)copyin(self->msghdr, sizeof(struct
msghdr));
printf("msghdr namelen is %d\n",msghdrp->msg_namelen);
tracemem(msghdrp,sizeof(struct msghdr1));

the value printed for namelen is not the expected one but in fact the
value of the following
field in the msghdr structure : the address of msg_iov.

I must be missing something but don't know what.
0 new messages