Marc Rocas
2005-Oct-01 02:43 UTC
[dtrace-discuss] RFE: sched probe that fires when an lwp is stopped
A thread running in the RT sched class is still subject to being stopped (holdlwps()) if some other thread in its process calls vfork(2) (e.g., system(3c)). Additionally, some of the p-tools (pfiles(1), pldd(1), pstack(1)) will also stop a process (procfs:pr_stop) as well. I''ve debugged issues with broken real-time commitments due to buggy code calling vfork(2) or to a testing framework using one of the above p-tools. What I would find useful would be for a sched probe, or perhaps a proc probe, that would fire anytime a process/lwp is stopped. I''ve mentioned two possible ways but I would guess that there may be more. This type of probe would be useful in discovering coding practices that inadvertantly end up stopping a process/lwp. Thanks in advance for your time, --Marc -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/dtrace-discuss/attachments/20050930/9f6a7644/attachment.html>