[dtrace-discuss] 32-bit program on a 64-bit kernel

Vladimir Marek Vladimir.Marek at Sun.COM
Thu Jul 10 07:35:16 PDT 2008


Hi,

[...]
> Is there a 32-bit version of dtrace (and if so where)?
> Is there some other way to overcome this problem?

look at dtrace man, option -32


> pid$target::match_fixed_name:entry
> {
>          trace("enter match_fixed_name");
>          mydisk = arg0;
>          self->match_dname = (char *)arg1;
> }
> 
> pid$target::match_fixed_name:return
> {
>          trace("return");
>          printf("\ndevice name: %s", 
> copyinstr((uintptr_t)self->match_dname));
>          self->devid = (char *)copyin((intptr_t)mydisk, 4);
>          printf("\ndevice_id at %x, string: s", (uint_t)self->devid);
> /*              copyinstr((intptr_t)mydiskp)); */
>          printf("\nreturn value: %u", (uint64_t)arg1);
> }

You should also use self->mydisk instead of mydisk. Also you should set
all the self->xxx variables to 0, when you no longer need them.

Hope this helps

-- 
	Vlad
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 193 bytes
Desc: not available
Url : http://mail.opensolaris.org/pipermail/dtrace-discuss/attachments/20080710/991842e4/attachment.bin 


More information about the dtrace-discuss mailing list