[Q] How to use Xorg dtrace hooks?

Pat Kane pekane52 at gmail.com
Wed Jan 20 12:40:33 PST 2010

I needed trace client activity on a Solaris 10 system
with an Xorg that I have built.

After looking at the dispatch code I see that there
are dtrace hooks in the exact places that I was thinking
of adding debug output.  Cool, but I need a bit of a clue
as to how to use them.

My first attempt was this "D" script:

      printf("%s\n", arg0);

but dtrace did not like that, maybe I need "stringof(arg0)"?

Does anyone have working dtrace scripts?


More information about the xorg mailing list