I sent a message to Sun''s old internal dtrace and X11 mailing lists a few months ago: After trying to absorb as much as possible at last week''s dtrace classes, I sat down with the manual and tried things out for a bit to help it sink in before I forgot it all. One of the chapters I stumbled across was the one on adding your own probes to your own applications, which reminded me of some conversations I''d had with various people (Bart and Mahmood and others I''ve probably forgotten). Caffiene was consumed, and one thing led to another, and after a push in the right direction from the dtrace-interest list... # dtrace -l -n ''Xserver*:::'' ID PROVIDER MODULE FUNCTION NAME 4 Xserver848 Xsun Dispatch request-start 5 Xserver848 Xsun Dispatch request-done 6 Xserver848 Xsun InitClient client-connect 7 Xserver848 Xsun CloseDownClient client-disconnect [...] I''ve made the sources for this, and instructions and sample scripts for using it, available outside Sun now. You can find them at: http://people.freedesktop.org/~alanc/dtrace/ (Sorry, for the moment, Xorg on x86 only, since the Xsun sources aren''t public to allow building your own there, and distributing binaries of Xsun outside of normal channels requires lots more paperwork.) And more information in my recent blog posts: http://blogs.sun.com/roller/page/alanc?entry=xserver_provider_for_dtrace http://blogs.sun.com/roller/page/alanc?entry=dtracing_down_an_x_server Try it out and let me know if how well it works for you, or if you have any ideas on how to make it more useful. -- -Alan Coopersmith- alan.coopersmith at sun.com Sun Microsystems, Inc. - X Window System Engineering