[PATCH] debug: select only needed interfaces when tracing

Tiago Vignatti tiago.vignatti at linux.intel.com
Mon Aug 1 07:14:23 PDT 2011


On 07/27/2011 06:12 PM, Tiago Vignatti wrote:
> If WAYLAND_DEBUG is set, then it prints all the interfaces but the ones
> starting with '-'. So it is possible to group several interfaces to
> exclude when tracing, using comma for separating them. For instance,
> setting WAYLAND_DEBUG="-wl_input_device, -wl_shell" will print all the
> interfaces but not the input-device neither the shell ones.
>
> Signed-off-by: Tiago Vignatti<tiago.vignatti at intel.com>
> ---
>   wayland/Makefile.am      |    2 +
>   wayland/connection.c     |    4 ++
>   wayland/debug-trace.c    |   93 ++++++++++++++++++++++++++++++++++++++++++++++
>   wayland/debug-trace.h    |   35 +++++++++++++++++
>   wayland/wayland-client.c |   14 ++-----
>   wayland/wayland-server.c |   14 ++-----
>   6 files changed, 142 insertions(+), 20 deletions(-)
>   create mode 100644 wayland/debug-trace.c
>   create mode 100644 wayland/debug-trace.h


this patch has two allocation issues; discard it please, I'm sending 
another one.

         Tiago


More information about the wayland-devel mailing list