Hi,
I want to save the stack information when memory is allocated using
following script, but it doesn't work. Could anyone help me with it ?
#########
pid$1::malloc_internal:return,
pid$1::oversize:entry
/self->size/
{
allocateMem[arg1] = ustack(10); /* save relationship <address, stack> */
self->size = 0;
}
I also tried invoking another command to save ustack, using following scripte
but also fail.
#########
pid$1::malloc_internal:return,
pid$1::oversize:entry
/self->size/
{
system(saveStack(arg1, ustack(10))); /* invoke another command to save
stack*/
self->size = 0;
}
Here saveSatck is an executable program, it save "arg1" and "stack" in a map.
I don't want to print out result of ustack on screen, because the output is
very large after long time running.
BR
Jian Li
--
This message posted from opensolaris.org
_______________________________________________
dtrace-discuss mailing list
[email protected]