I read this:
http://www.opensolaris.org/jive/message.jspa?messageID=80703#80703
pid$target:libpkcs11:sftk_handleObject:entry
{
self->object = arg0;
}
pid$target:libpkcs11:sftk_handleObject:return
/self->ob ject != NULL/
{
self->handle = *(int *)
copyin(self->object + 0x80, sizeof (int));
printf("object %p handle is %d\n", self->object, self->handle);
self->object = NULL;
}
the problem is that I want the value of a global variable so I can't use arg0.
I tried to obtain the value of a global value like that:
1) to obtain an address of a global variable I used mdb and ::nm
-> I copy the address of GLOB OBJT 0x4 0xfeb3aa38 for example
2)and then my Dtrace script:
dtrace::BEGIN
{trace(*(int *) copyin(0xfeb3aa38,sizeof(int) );
}
it returns me an "invalid address"...
Any idea?
thank you, say me if it isn't clear enough
Fabien.