oprofile: add op_cpu_buffer_write_reserve()
authorRobert Richter <robert.richter@amd.com>
Thu, 25 Dec 2008 16:26:07 +0000 (17:26 +0100)
committerRobert Richter <robert.richter@amd.com>
Wed, 7 Jan 2009 21:37:44 +0000 (22:37 +0100)
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: Robert Richter <robert.richter@amd.com>

No differences found