[sysprof] Use a buffer of 32 pages.



commit 47795ba85b4cf222ef062c0dc37af0b12ef4f01d
Author: Søren Sandmann Pedersen <ssp redhat com>
Date:   Sun Sep 6 21:26:41 2009 -0400

    Use a buffer of 32 pages.
    
    Also remove a debug print statement.

 collector.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/collector.c b/collector.c
index fbc8580..b32c872 100644
--- a/collector.c
+++ b/collector.c
@@ -38,7 +38,7 @@
 #include "perf_counter.h"
 #include "barrier.h"
 
-#define N_PAGES 128		/* Number of pages in the ringbuffer */
+#define N_PAGES 32		/* Number of pages in the ringbuffer */
 
 typedef struct counter_t counter_t;
 typedef struct sample_event_t sample_event_t;
@@ -162,7 +162,10 @@ on_read (gpointer data)
 
 	if (header->size > head - tail)
 	{
-	    g_print ("asdf\n");
+	    /* The kernel did not generate a complete event.
+	     * I don't think that can happen, but we may as well
+	     * be paranoid.
+	     */
 	    break;
 	}
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]