Hi all;

The following script works well with dtrace 1.1 but return the following error with dtrace 1.3

dtrace: failed to compile script log-memory.d: line 3: probe description pid25659:libc:malloc:entry does not match any probes

Thanks for any suggestion.
-benoit


#!/usr/sbin/dtrace -s

pid$1:libc:malloc:
entry{
       self->trace = 1;        self->size = arg0;
}

pid$1:libc:malloc:return
/self->trace == 1 && self->size > $2/
{
printf("Ptr=0x%p Size=%d TS=%d AllocTime=%Y", arg1, self->size, timestamp, walltimestamp);
       ustack();
       self->trace = 0;
       self->size = 0;
   allocated[arg1] = 1;
}


_______________________________________________
dtrace-discuss mailing list
dtrace-discuss@opensolaris.org

Reply via email to