From f5c680bd39baa6453c5435351b49ae2eee7ba7b6 Mon Sep 17 00:00:00 2001 From: Robert Richter Date: Wed, 7 Jan 2009 00:20:57 +0100 Subject: [PATCH] --- yaml --- r: 128221 b: refs/heads/master c: ebf8d974e298018f0b4ee02b1b097bf5500d3d27 h: refs/heads/master i: 128219: 9d458ce020cb83cecd8f6d81996e542a8ed3d006 v: v3 --- [refs] | 2 +- trunk/drivers/oprofile/buffer_sync.c | 6 ------ trunk/drivers/oprofile/cpu_buffer.c | 4 ---- 3 files changed, 1 insertion(+), 11 deletions(-) diff --git a/[refs] b/[refs] index da38af106e5f..bb2aa61906b1 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 465634adc1d09b490c8ee31885575be39d375d53 +refs/heads/master: ebf8d974e298018f0b4ee02b1b097bf5500d3d27 diff --git a/trunk/drivers/oprofile/buffer_sync.c b/trunk/drivers/oprofile/buffer_sync.c index d692fdc1a211..ac014cb27915 100644 --- a/trunk/drivers/oprofile/buffer_sync.c +++ b/trunk/drivers/oprofile/buffer_sync.c @@ -316,8 +316,6 @@ static void add_trace_begin(void) add_event_entry(TRACE_BEGIN_CODE); } -#ifdef CONFIG_OPROFILE_IBS - static void add_data(struct op_entry *entry, struct mm_struct *mm) { unsigned long code, pc, val; @@ -355,8 +353,6 @@ static void add_data(struct op_entry *entry, struct mm_struct *mm) add_event_entry(val); } -#endif - static inline void add_sample_entry(unsigned long offset, unsigned long event) { add_event_entry(offset); @@ -544,10 +540,8 @@ void sync_buffer(int cpu) cookie = get_exec_dcookie(mm); add_user_ctx_switch(new, cookie); } -#ifdef CONFIG_OPROFILE_IBS if (op_cpu_buffer_get_size(&entry)) add_data(&entry, mm); -#endif continue; } diff --git a/trunk/drivers/oprofile/cpu_buffer.c b/trunk/drivers/oprofile/cpu_buffer.c index ddba9d01f09b..b846af632c81 100644 --- a/trunk/drivers/oprofile/cpu_buffer.c +++ b/trunk/drivers/oprofile/cpu_buffer.c @@ -361,8 +361,6 @@ void oprofile_add_sample(struct pt_regs * const regs, unsigned long event) __oprofile_add_ext_sample(pc, regs, event, is_kernel); } -#ifdef CONFIG_OPROFILE_IBS - /* * Add samples with data to the ring buffer. * @@ -397,8 +395,6 @@ void oprofile_add_data(struct op_entry *entry, struct pt_regs * const regs, cpu_buf->sample_lost_overflow++; } -#endif - void oprofile_add_pc(unsigned long pc, int is_kernel, unsigned long event) { struct oprofile_cpu_buffer *cpu_buf = &__get_cpu_var(cpu_buffer);