oprofile: add op_cpu_buffer_add_data()
This function can be used to attach data to a sample. It returns the remaining free buffer size that has been reserved with op_cpu_buffer_write_reserve(). Signed-off-by: Robert Richter <robert.richter@amd.com>
This commit is contained in:
@ -258,7 +258,7 @@ op_add_code(struct oprofile_cpu_buffer *cpu_buf, unsigned long backtrace,
|
||||
sample->event = flags;
|
||||
|
||||
if (size)
|
||||
sample->data[0] = (unsigned long)task;
|
||||
op_cpu_buffer_add_data(&entry, (unsigned long)task);
|
||||
|
||||
op_cpu_buffer_write_commit(&entry);
|
||||
|
||||
|
Reference in New Issue
Block a user