|
@@ -54,16 +54,6 @@ static void wq_sync_buffer(struct work_struct *work);
|
|
#define DEFAULT_TIMER_EXPIRE (HZ / 10)
|
|
#define DEFAULT_TIMER_EXPIRE (HZ / 10)
|
|
static int work_enabled;
|
|
static int work_enabled;
|
|
|
|
|
|
-void free_cpu_buffers(void)
|
|
|
|
-{
|
|
|
|
- if (op_ring_buffer_read)
|
|
|
|
- ring_buffer_free(op_ring_buffer_read);
|
|
|
|
- op_ring_buffer_read = NULL;
|
|
|
|
- if (op_ring_buffer_write)
|
|
|
|
- ring_buffer_free(op_ring_buffer_write);
|
|
|
|
- op_ring_buffer_write = NULL;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
unsigned long oprofile_get_cpu_buffer_size(void)
|
|
unsigned long oprofile_get_cpu_buffer_size(void)
|
|
{
|
|
{
|
|
return oprofile_cpu_buffer_size;
|
|
return oprofile_cpu_buffer_size;
|
|
@@ -77,6 +67,16 @@ void oprofile_cpu_buffer_inc_smpl_lost(void)
|
|
cpu_buf->sample_lost_overflow++;
|
|
cpu_buf->sample_lost_overflow++;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+void free_cpu_buffers(void)
|
|
|
|
+{
|
|
|
|
+ if (op_ring_buffer_read)
|
|
|
|
+ ring_buffer_free(op_ring_buffer_read);
|
|
|
|
+ op_ring_buffer_read = NULL;
|
|
|
|
+ if (op_ring_buffer_write)
|
|
|
|
+ ring_buffer_free(op_ring_buffer_write);
|
|
|
|
+ op_ring_buffer_write = NULL;
|
|
|
|
+}
|
|
|
|
+
|
|
int alloc_cpu_buffers(void)
|
|
int alloc_cpu_buffers(void)
|
|
{
|
|
{
|
|
int i;
|
|
int i;
|