> That's printing the kernel address returned by
> copyin().  Try this:
> 
> fbt::door_call:entry
> /curpsinfo->pr_dmodel == PR_MODEL_ILP32/
> {
> printf("entry args are %x and %x \n", arg0,
> , *(uint32_t *)copyin(arg1, 4));
> }
> 
> fbt::door_call:entry
> /curpsinfo->pr_dmodel == PR_MODEL_LP64/
> {
> printf("entry args are %lx and %lx \n", arg0,
> , *(uint64_t *)copyin(arg1, 8));
> }
> 
> Nico

Thanks Nico. Since arg1 is a pointer to a struct in userland, can I use 
ptr = *(uint32_t *)copyin(arg1, 4);
tracemem(ptr,10);
to dump the structure. I tried this and getting invalid address (0xfb07bc75) in 
action #4.

Thanks again.
-- 
This message posted from opensolaris.org
_______________________________________________
dtrace-discuss mailing list
dtrace-discuss@opensolaris.org

Reply via email to