weston-log-flight-rec: Add a global variable to access the ring buffer

Graphics / Wayland / Weston - Marius Vlad [collabora.com] - 25 November 2019 20:29 EST

With it add also a function which can be used in an assert()-like situation to display the contents of the ring buffer. Within gdb this call also be called if the program is loaded/still loaded into memory.

The global variable will be used in a later patch to be accessed from a python gdb script.

b1f5f807 weston-log-flight-rec: Add a global variable to access the ring buffer
include/libweston/weston-log.h | 3 +++
libweston/weston-log-flight-rec.c | 53 ++++++++++++++++++++++++++++++++-------
2 files changed, 47 insertions(+), 9 deletions(-)

Upstream: cgit.freedesktop.org


  • Share