aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/oprofile/cpu_buffer.c
diff options
context:
space:
mode:
authorRobert Richter <robert.richter@amd.com>2008-11-27 04:57:09 -0500
committerRobert Richter <robert.richter@amd.com>2008-12-10 08:20:13 -0500
commit7d468abee0f1a7e918b5e2f23120436a54ba9f33 (patch)
tree397e40ca95ef2dcf70ed308cd1032c0f63f0508c /drivers/oprofile/cpu_buffer.c
parente2ac8ef576e45d9db7264abc51383e68d26067bb (diff)
oprofile: adding cpu buffer r/w access functions
This is in preparation for changes in the cpu buffer implementation. Signed-off-by: Robert Richter <robert.richter@amd.com>
Diffstat (limited to 'drivers/oprofile/cpu_buffer.c')
-rw-r--r--drivers/oprofile/cpu_buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/oprofile/cpu_buffer.c b/drivers/oprofile/cpu_buffer.c
index 2c4d54187b90..7e5e650e409f 100644
--- a/drivers/oprofile/cpu_buffer.c
+++ b/drivers/oprofile/cpu_buffer.c
@@ -168,7 +168,7 @@ static inline void
168add_sample(struct oprofile_cpu_buffer *cpu_buf, 168add_sample(struct oprofile_cpu_buffer *cpu_buf,
169 unsigned long pc, unsigned long event) 169 unsigned long pc, unsigned long event)
170{ 170{
171 struct op_sample *entry = &cpu_buf->buffer[cpu_buf->head_pos]; 171 struct op_sample *entry = cpu_buffer_write_entry(cpu_buf);
172 entry->eip = pc; 172 entry->eip = pc;
173 entry->event = event; 173 entry->event = event;
174 increment_head(cpu_buf); 174 increment_head(cpu_buf);