Hi,

>       Is there any way we can find out where there is infinite loop 
> inside a peice of c++ code using dtrace.


If your application really is stuck in an infinite loop then you could
just use the profile provider and grab stacks of the application in
question with ustack(). Something like:

profile-997
/execname == "insert-app-name-here"/
{
    @[ustack()] = count();
}

However, you could just use pstack(1) to grab stacks.

Jon.
_______________________________________________
dtrace-discuss mailing list
[email protected]

Reply via email to