flush at every second
authorJulien Desfossez <jdesfossez@efficios.com>
Fri, 17 Aug 2012 03:46:09 +0000 (23:46 -0400)
committerJulien Desfossez <jdesfossez@efficios.com>
Sat, 19 Oct 2013 16:02:38 +0000 (12:02 -0400)
Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
src/lttngtop.c

index 892cfd0a6b93a37fca6d7f08333c071cc0b78720..7d89e5c8af12896dcc38eb36cf79251bed207cfd 100644 (file)
@@ -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);
This page took 0.031724 seconds and 4 git commands to generate.