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
pgpN5Wik5Ef4R.pgp
Description: PGP signature
_______________________________________________ dtrace-discuss mailing list [email protected]
