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>
This commit is contained in:
Marius Vlad
2019-07-18 17:04:37 +03:00
committed by Daniel Stone
parent bdfc11cd1b
commit b1f5f8076a
2 changed files with 50 additions and 12 deletions
+3
View File
@@ -126,6 +126,9 @@ struct weston_log_subscription *
weston_log_subscription_iterate(struct weston_log_scope *scope,
struct weston_log_subscription *sub_iter);
void
weston_log_flight_recorder_display_buffer(FILE *file);
#ifdef __cplusplus
}
#endif