diff options
author | Robert Richter <robert.richter@amd.com> | 2008-11-27 10:57:09 +0100 |
---|---|---|
committer | Robert Richter <robert.richter@amd.com> | 2008-12-10 14:20:13 +0100 |
commit | 7d468abee0f1a7e918b5e2f23120436a54ba9f33 (patch) | |
tree | 397e40ca95ef2dcf70ed308cd1032c0f63f0508c /drivers/oprofile/cpu_buffer.c | |
parent | e2ac8ef576e45d9db7264abc51383e68d26067bb (diff) | |
download | lwn-7d468abee0f1a7e918b5e2f23120436a54ba9f33.tar.gz lwn-7d468abee0f1a7e918b5e2f23120436a54ba9f33.zip |
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); |