aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/oprofile/buffer_sync.c
diff options
context:
space:
mode:
authorRobert Richter <robert.richter@amd.com>2008-12-24 10:53:53 -0500
committerRobert Richter <robert.richter@amd.com>2008-12-29 09:17:52 -0500
commit6d2c53f3cd81e33eec17aa99845d43e599986982 (patch)
treeba8462e472851065843396f1a5aaf3bbfc46ebb3 /drivers/oprofile/buffer_sync.c
parentbd2172f58094b3f8afa017e68f3f0b57577824e1 (diff)
oprofile: rename cpu buffer functions
This patch renames cpu buffer functions to something more oprofile specific names. Functions will be moved to the global name space. Cc: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Robert Richter <robert.richter@amd.com>
Diffstat (limited to 'drivers/oprofile/buffer_sync.c')
-rw-r--r--drivers/oprofile/buffer_sync.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/oprofile/buffer_sync.c b/drivers/oprofile/buffer_sync.c
index 737bd9484822..d295d92b57f0 100644
--- a/drivers/oprofile/buffer_sync.c
+++ b/drivers/oprofile/buffer_sync.c
@@ -331,7 +331,7 @@ static void add_ibs_begin(int cpu, int code, struct mm_struct *mm)
331 off_t offset; 331 off_t offset;
332 struct op_sample *sample; 332 struct op_sample *sample;
333 333
334 sample = cpu_buffer_read_entry(cpu); 334 sample = op_cpu_buffer_read_entry(cpu);
335 if (!sample) 335 if (!sample)
336 goto Error; 336 goto Error;
337 rip = sample->eip; 337 rip = sample->eip;
@@ -370,7 +370,7 @@ static void add_ibs_begin(int cpu, int code, struct mm_struct *mm)
370 count = IBS_OP_CODE_SIZE; /*IBS OP is 5 int64s*/ 370 count = IBS_OP_CODE_SIZE; /*IBS OP is 5 int64s*/
371 371
372 for (i = 0; i < count; i++) { 372 for (i = 0; i < count; i++) {
373 sample = cpu_buffer_read_entry(cpu); 373 sample = op_cpu_buffer_read_entry(cpu);
374 if (!sample) 374 if (!sample)
375 goto Error; 375 goto Error;
376 add_event_entry(sample->eip); 376 add_event_entry(sample->eip);
@@ -537,11 +537,11 @@ void sync_buffer(int cpu)
537 537
538 add_cpu_switch(cpu); 538 add_cpu_switch(cpu);
539 539
540 cpu_buffer_reset(cpu); 540 op_cpu_buffer_reset(cpu);
541 available = cpu_buffer_entries(cpu); 541 available = op_cpu_buffer_entries(cpu);
542 542
543 for (i = 0; i < available; ++i) { 543 for (i = 0; i < available; ++i) {
544 struct op_sample *s = cpu_buffer_read_entry(cpu); 544 struct op_sample *s = op_cpu_buffer_read_entry(cpu);
545 if (!s) 545 if (!s)
546 break; 546 break;
547 547