This discussion is archived
0 Replies Latest reply: Oct 22, 2012 1:07 AM by 937453 RSS

dtrace problem with sendmsg

937453 Newbie
Currently Being Moderated
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.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points