From: Julien Desfossez Date: Fri, 17 Aug 2012 03:46:09 +0000 (-0400) Subject: flush at every second X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=024eb6c668575b8ea6d18165ca9bf591cc9500ca;p=lttngtop.git flush at every second Signed-off-by: Julien Desfossez --- diff --git a/src/lttngtop.c b/src/lttngtop.c index 592bdaa..9466c51 100644 --- a/src/lttngtop.c +++ b/src/lttngtop.c @@ -88,9 +88,13 @@ static struct poptOption long_options[] = { void *refresh_thread(void *p) { + struct mmap_stream *mmap_info; + while (1) { if (quit) return NULL; + bt_list_for_each_entry(mmap_info, &mmap_list.head, list) + helper_kernctl_buffer_flush(mmap_info->fd); sem_wait(&pause_sem); sem_post(&pause_sem); sem_post(&timer);