[dtrace-discuss] Incorrect information showed by dtrace

Nilendra Jain
Wed, 28 Feb 2007 13:01:38 -0000

I am using dtrace to check memory leaks in my code. I have put probe points for
malloc, calloc, realloc and free. It is basically for a telephony product that I
am working on.

I started dtrace after running my process. The output produced by dtrace for one
telephony call shows that one of my [b]initialization[/b] functions has been
invoked 295 times. But it is an initialization function and it gets called only
once during the lifetime of a phone call. I have verified that by adding a log
statement at the start of the function and checking the log output.

I am not sure if the output of dtrace is wrong or I am not probing the right way
?