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>
Fri, 17 Aug 2012 03:46:09 +0000 (23:46 -0400)
Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
src/lttngtop.c

index 592bdaae03402c17521e4f5d3f39a5e262bee39b..9466c5102f2b67eb6c176b94cfae586507957686 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.023376 seconds and 4 git commands to generate.