From: Julien Desfossez Date: Fri, 17 Aug 2012 03:46:09 +0000 (-0400) Subject: flush at every second X-Git-Tag: v0.3~107 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=cade341846ca2769283fb568700b1bd2732f28d0;p=lttngtop.git flush at every second Signed-off-by: Julien Desfossez --- diff --git a/src/lttngtop.c b/src/lttngtop.c index 892cfd0..7d89e5c 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);