Skip to content
Commit 2cc28b9f authored by Robert Richter's avatar Robert Richter
Browse files

oprofile: add op_cpu_buffer_write_reserve()



This function prepares the cpu buffer to write a sample.

Struct op_entry is used during operations on the ring buffer while
struct op_sample contains the data that is stored in the ring
buffer. Struct entry can be uninitialized. The function reserves a
data array that is specified by size. Use op_cpu_buffer_write_commit()
after preparing the sample. In case of errors a null pointer is
returned, otherwise the pointer to the sample.

Signed-off-by: default avatarRobert Richter <robert.richter@amd.com>
parent d358e75f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment