[dtrace-discuss] Re: Incorrect information showed by dtrace

Bart Smaalders
Thu, 01 Mar 2007 18:31:41 -0000

Nilendra Jain wrote:
> It is a C++ application. I have verified that this function is not calling
malloc and friends repeatedly. It is just allocating 2 structures.
>
> This function is called at the start of every phone call. So logically
there should be just 2 instances of this function per call (one for each
structure) in the dtrace file. Surprisingly after one call I find that there are
295 occurrences of this function after one call and also after 10 calls the
number remains the same.
>
> I am printing the userstack using ustack. In all the cases the stack is
almost the same, but the size of the memory allocated varies and also the
pointer address changes.
>
>
> This message posted from opensolaris.org
> _______________________________________________
> dtrace-discuss mailing list
> dtrace-discuss at opensolaris.org

Keep in mind that C++ does much magic... pass the -S
option to the compiler and examine the generated aseembler.
That''s really the only way to grok what''s happening.


- Bart


--
Bart Smaalders			Solaris Kernel Performance
barts at cyber.eng.sun.com		http://blogs.sun.com/barts