diff options
author | Robert Richter <robert.richter@amd.com> | 2008-11-27 12:57:09 +0300 |
---|---|---|
committer | Robert Richter <robert.richter@amd.com> | 2008-12-10 16:20:13 +0300 |
commit | 7d468abee0f1a7e918b5e2f23120436a54ba9f33 (patch) | |
tree | 397e40ca95ef2dcf70ed308cd1032c0f63f0508c /drivers/oprofile/cpu_buffer.c | |
parent | e2ac8ef576e45d9db7264abc51383e68d26067bb (diff) | |
download | linux-7d468abee0f1a7e918b5e2f23120436a54ba9f33.tar.xz |
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.c | 2 |
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 add_sample(struct oprofile_cpu_buffer *cpu_buf, unsigned long pc, unsigned long event) { - struct op_sample *entry = &cpu_buf->buffer[cpu_buf->head_pos]; + struct op_sample *entry = cpu_buffer_write_entry(cpu_buf); entry->eip = pc; entry->event = event; increment_head(cpu_buf); |