On Fri, Apr 22, 2011 at 11:54 AM, Attila Rajmund Nohl
<attila.r.n...@gmail.com> wrote:
> compilation error, then
>
>        ctlptr = (struct strbuf*)arg1;
>        printf("maxlen: %5d", ctlptr->maxlen);
>
> and got:
>
> dtrace: error on enabled probe ID 1 (ID 6236: syscall::putmsg:entry):
> invalid address (0xffbfeeac) in action #6 at DIF offset 4

This gives you a pointer into userspace.  The dtrace probes operate in
kernel space.  Something like this should do it:

    ctlptr = (struct strbuf*)copyin(arg1, sizeof(struct strbuf));


-- 
Mike Gerdts
http://mgerdts.blogspot.com/
_______________________________________________
dtrace-discuss mailing list
dtrace-discuss@opensolaris.org

Reply via email to