oprofile: use new data sample format for ibs
authorRobert Richter <robert.richter@amd.com>
Mon, 5 Jan 2009 09:35:31 +0000 (10:35 +0100)
committerRobert Richter <robert.richter@amd.com>
Wed, 7 Jan 2009 21:47:23 +0000 (22:47 +0100)
commit1acda878e20ea0cd3708ba66dca67d52eaafdd2b
tree97eb93396efc357f91dbd0ce080a5df51f29fd9b
parentbd7dc46f770d317ada1348294ff1f319243b803b
oprofile: use new data sample format for ibs

The new ring buffer implementation allows the storage of samples with
different size. This patch implements the usage of the new sample
format to store ibs samples in the cpu buffer. Until now, writing to
the cpu buffer could lead to incomplete sampling sequences since IBS
samples were transfered in multiple samples. Due to a full buffer,
data could be lost at any time. This can't happen any more since the
complete data is reserved in advance and then stored in a single
sample.

Signed-off-by: Robert Richter <robert.richter@amd.com>
arch/x86/oprofile/op_model_amd.c
drivers/oprofile/buffer_sync.c
drivers/oprofile/cpu_buffer.c
drivers/oprofile/cpu_buffer.h