Searching for 'memmove memcpy dtrace' turned up Chad's excellent blog post
on the subject:

  http://cmynhier.blogspot.com/2007/04/memmove-memcpy-and-dtrace.html

That should answer your question.

Adam

On Wed, Aug 06, 2008 at 06:39:45PM +0200, [EMAIL PROTECTED] wrote:
> Hi,
> 
> Having such dtrace scipt:
> 
> #pragma D option flowindent
> 
> pid$target:::entry,
> pid$target:::return
> {
> }
> 
> and such c program: 
> 
> void main()
> {
>   int data[100];
>   memmove(&data[5],&data[6],50);
>   printf("end\n");
> }
> 
> Everytime I call memmove I get strange "return from function" record from 
> memcpy call -this record does not have its "entering function" part so I get 
> something like this (also note strange indentation):
> 
>   1      -> memmove
>   1      <- memmove
>   1    <- memcpy
> 
> 
> Is this a bug or am I missing something ?
> 
> Thanks J.
> _______________________________________________
> dtrace-discuss mailing list
> [email protected]

-- 
Adam Leventhal, Fishworks                     http://blogs.sun.com/ahl
_______________________________________________
dtrace-discuss mailing list
[email protected]

Reply via email to