weston-log-flight-rec: Add a global variable to access the ring buffer
authorMarius Vlad <marius.vlad@collabora.com>
Thu, 18 Jul 2019 14:04:37 +0000 (17:04 +0300)
committerDaniel Stone <daniel@fooishbar.org>
Mon, 25 Nov 2019 20:29:49 +0000 (20:29 +0000)
commitb1f5f8076abe588d3e4873898cc99351a653b355
treebda23232135623846c432276dfc820cebee6a03b
parentbdfc11cd1bad41eaf91e07c0c4f13b9248448bc6
weston-log-flight-rec: Add a global variable to access the ring buffer

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.

Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
include/libweston/weston-log.h
libweston/weston-log-flight-rec.c