0 Replies Latest reply on Oct 22, 2012 8:07 AM by 937453

    dtrace problem with sendmsg

      I try to display the content of the sendmsg buffer:

      /execname == "msgsend"/
      self->msghdr = arg1;
      msghdrp = (struct msghdr *)copyin(self->msghdr, sizeof(struct
      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.