[PATCH v2] dix: add dtrace probes to input API

Peter Hutterer peter.hutterer at who-t.net
Mon Mar 19 23:54:55 PDT 2012


On Mon, Mar 19, 2012 at 05:09:38PM -0700, Alan Coopersmith wrote:
> On 03/14/12 09:56 PM, Peter Hutterer wrote:
> > For driver debugging, it is helpful to know whether the driver has actually
> > submitted an event to the server. dtrace hooks can help here.
> > 
> 
> v2 didn't quite build on Solaris - I needed to apply the changes attached
> to make that happen.
> 
> Otherwise, looking good to me - thanks for the doc updates!

thanks, I've squashed these in.

Cheers,
  Peter
> 
> -- 
> 	-Alan Coopersmith-              alan.coopersmith at oracle.com
> 	 Oracle Solaris Engineering - http://blogs.oracle.com/alanc

> diff --git a/dix/getevents.c b/dix/getevents.c
> index 3c27aef..81043b3 100644
> --- a/dix/getevents.c
> +++ b/dix/getevents.c
> @@ -69,6 +69,8 @@
>  #include "listdev.h" /* for sizing up DeviceClassesChangedEvent */
>  
>  #if XSERVER_DTRACE
> +#include <sys/types.h>
> +typedef const char *string;
>  #include <Xserver-dtrace.h>
>  #endif
>  
> diff --git a/doc/dtrace/Xserver-DTrace.xml b/doc/dtrace/Xserver-DTrace.xml
> index 2871bb3..91ca254 100644
> --- a/doc/dtrace/Xserver-DTrace.xml
> +++ b/doc/dtrace/Xserver-DTrace.xml
> @@ -83,7 +83,7 @@ DEALINGS IN THE SOFTWARE.
>  
>      <table id="Probes_and_their_arguments">
>        <title>Probes and their arguments</title>
> -      <tgroup cols='7'>
> +      <tgroup cols='9'>
>  	<colspec colname="probe" colwidth="2*"/>
>  	<colspec colname="desc" colwidth="3*"/>
>  	<colspec colname="arg0" colwidth="1*"/>



More information about the xorg-devel mailing list