dk
2007-Sep-07 08:48 UTC
[dtrace-discuss] how to trace an infinite loop in a peice of c++ code usinf drtace???
Hi, Is there any way we can find out where there is infinite loop inside a peice of c++ code using dtrace. Regards, Arun DK. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/dtrace-discuss/attachments/20070907/e5d9ea3c/attachment.html>
Jon Haslam
2007-Sep-07 10:00 UTC
[dtrace-discuss] how to trace an infinite loop in a peice of c++ code usinf drtace???
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.
Ananth Shrinivas
2007-Sep-07 10:08 UTC
[dtrace-discuss] how to trace an infinite loop in a peice of c++ code usinf drtace???
dk wrote:> Hi, > Is there any way we can find out where there is infinite loop > inside a peice of c++ code using dtrace. >http://en.wikipedia.org/wiki/Halting_Problem Cheers, Ananth