[PATCH weston v2 0/8] weston-debug API and tool

Maniraj Devadoss external.mdevadoss at de.adit-jv.com
Mon Sep 11 15:35:51 UTC 2017


This series of patches are from weston debug protocol RFC
posted by Pekka Paalanen <pq at iki.fi> along with the modifications
done by me.

https://lists.freedesktop.org/archives/wayland-devel/2017-June/034227.html

This series depends on the compositor-debug wayland protocol which is not
released yet. So a wayland-protocols release (with the compositor-debug
protocol addition) is needed before merging these patches.

Pekka Paalanen (8):
  libweston: add weston_debug API and implementation
  compositor: add option to enable weston_debug
  clients: add weston-debug
  compositor: offer logs via weston-debug
  xwm: dump_property() to use FILE internally
  xwm: move FILE to the callers of dump_property()
  xwm: convert WM_DEBUG into a weston-debug scope
  compositor: protocol logger

 Makefile.am               |  20 +-
 clients/weston-debug.c    | 378 +++++++++++++++++++++++
 compositor/main.c         | 155 ++++++++++
 libweston/compositor.c    |   5 +
 libweston/compositor.h    |   8 +
 libweston/weston-debug.c  | 755 ++++++++++++++++++++++++++++++++++++++++++++++
 libweston/weston-debug.h  | 107 +++++++
 man/weston-debug.man      |  46 +++
 man/weston.man            |  15 +-
 xwayland/launcher.c       |   7 +
 xwayland/selection.c      |  39 ++-
 xwayland/window-manager.c | 233 +++++++-------
 xwayland/xwayland.h       |   6 +-
 13 files changed, 1655 insertions(+), 119 deletions(-)
 create mode 100644 clients/weston-debug.c
 create mode 100644 libweston/weston-debug.c
 create mode 100644 libweston/weston-debug.h
 create mode 100644 man/weston-debug.man

Modifications by Maniraj Devadoss:
 - Moved the weston-debug protocol to wayland-protocols and named it as
   compositor-debug protocol to make it common for all the compositors
 - Append the debug scope names to the debug messages to group it easily
 - Added a man page for weston-debug tool
 - Parse and print message arguments for protocol debug scope 

Future Plans:
 - Add the command line to weston to stream the bootup logs to given file
   before the client connects

-- 
2.7.4



More information about the wayland-devel mailing list