Hi Tiller,
> If you dereference A does it give you what you want?
>
> Try this (see the extra * added in the second printf ):
>
> $ dtrace -32 -w -n 'pid14243::mutt_iconv:entry{printf("0x%x ", arg1);
> A=copyin(arg1,4); printf("0x%x ", *((unsigned int)A)); stop();}'
Yes, this is exactly where I made the mistake. copyin is returning
pointer to the 'scratch' space, and not the buffer content itself.
For the reference, the function looks like
pid$target::mutt_iconv:entry
{
A=*(unsigned int*)copyin(arg1,4);
printf("0x%x ", A); trace(copyinstr(A));
}
> .tiller
Thank you Tiller
--
Vlad
pgpqSUpk9SBF2.pgp
Description: PGP signature
_______________________________________________ dtrace-discuss mailing list [email protected]
