mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-10 15:10:53 +00:00
Use a buffer of 32 pages.
Also remove a debug print statement.
This commit is contained in:
@ -38,7 +38,7 @@
|
|||||||
#include "perf_counter.h"
|
#include "perf_counter.h"
|
||||||
#include "barrier.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 counter_t counter_t;
|
||||||
typedef struct sample_event_t sample_event_t;
|
typedef struct sample_event_t sample_event_t;
|
||||||
@ -162,7 +162,10 @@ on_read (gpointer data)
|
|||||||
|
|
||||||
if (header->size > head - tail)
|
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;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user