From: Robert Richter Date: Thu, 25 Dec 2008 16:26:07 +0000 (+0100) Subject: oprofile: add op_cpu_buffer_write_reserve() X-Git-Tag: v2.6.29-rc1~32^2~1^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2cc28b9f261dd28d69767a34682ce55a27d928ed;p=pandora-kernel.git 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: Robert Richter --- Reading git-diff-tree failed