[Q] How to use Xorg dtrace hooks?

Alan Coopersmith Alan.Coopersmith at Sun.COM
Wed Jan 20 12:57:55 PST 2010


Pat Kane wrote:
> 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:
> 
>    Xserver16787:Xorg:Dispatch:request-start
>    {
>       printf("%s\n", arg0);
>    }
> 
> but dtrace did not like that, maybe I need "stringof(arg0)"?
> 
> Does anyone have working dtrace scripts?

http://people.freedesktop.org/~alanc/dtrace/ has documentation and
sample scripts.

-- 
	-Alan Coopersmith-           alan.coopersmith at sun.com
	 Sun Microsystems, Inc. - X Window System Engineering




More information about the xorg mailing list