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>
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user