1. 27 Aug, 2019 1 commit
  2. 31 Jul, 2017 1 commit
  3. 11 Feb, 2015 1 commit
    • Alan Coopersmith's avatar
      Get rid of const warnings in XSERVER_INPUT_EVENT dtrace probe calls · 9e002dfc
      Alan Coopersmith authored
      
      
      Use typedefs to work around dtrace dropping const qualifiers from probe
      arguments when generating Xserver-dtrace.h.   Add new probes.h header to
      avoid having to replicate these typedefs in every file with dtrace probes.
      
      Gets rid of these warnings from gcc 4.8:
       getevents.c:1096:9:
        warning: passing argument 6 of '__dtrace_Xserver___input__event' discards
        'const' qualifier from pointer target type [enabled by default]
       getevents.c:1096:9:
        warning: passing argument 7 of '__dtrace_Xserver___input__event' disards
        'const' qualifier from pointer target type [enabled by default]
       getevents.c:1651:9:
        warning: passing argument 6 of '__dtrace_Xserver___input__event' disards
        'const' qualifier from pointer target type [enabled by default]
       getevents.c:1651:9:
        warning: passing argument 7 of '__dtrace_Xserver___input__event' disards
        'const' qualifier from pointer target type [enabled by default]
       getevents.c:1791:9:
        warning: passing argument 6 of '__dtrace_Xserver___input__event' disards
        'const' qualifier from pointer target type [enabled by default]
       getevents.c:1791:9:
        warning: passing argument 7 of '__dtrace_Xserver___input__event' disards
        'const' qualifier from pointer target type [enabled by default]
       getevents.c:1921:9:
        warning: passing argument 6 of '__dtrace_Xserver___input__event' disards
        'const' qualifier from pointer target type [enabled by default]
       getevents.c:1921:9:
        warning: passing argument 7 of '__dtrace_Xserver___input__event' disards
        'const' qualifier from pointer target type [enabled by default]
      Signed-off-by: Alan Coopersmith's avatarAlan Coopersmith <alan.coopersmith@oracle.com>
      Reviewed-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
      9e002dfc
  4. 22 Mar, 2012 1 commit
    • Peter Hutterer's avatar
      dix: add dtrace probes to input API · c0b0a9bc
      Peter Hutterer authored
      For driver debugging, it is helpful to know whether the driver has actually
      submitted an event to the server. dtrace hooks can help here.
      
      Note that GetPointerEvents and friends may also be triggered by the server
      for other emulated devices, some care must be taken when analysing the
      results.
      
      Additional difficulty: proximity events have a run-time assigned type, so
      this may make automatic detection a tad harder. If in doubt, go for any
      event > 64 since the only two that can have that value are ProximityIn and
      ProximityOut.
      
      An example systemtap script is below:
      
        # Compile+run with
        #       stap -g xorg.stp /usr/bin/Xorg
        #
      
        function print_valuators:string(nvaluators:long, mask_in:long, valuators_in:long) %{
                int i;
                unsigned char *mask = (unsigned char*)THIS->mask_in;
                double *valuators = (double*)THIS->valuators_in;
                char str[128] = {0};
                char *s = str;
      
        #define BitIsSet(ptr, bit) (((unsigned char*)(ptr))[(bit)>>3] ...
      c0b0a9bc
  5. 07 Dec, 2010 1 commit
  6. 17 Dec, 2009 1 commit
  7. 28 Sep, 2009 1 commit
  8. 03 Nov, 2006 1 commit