]> git.baikalelectronics.ru Git - kernel.git/commit
oprofile: fix cpu buffer size
authorRobert Richter <robert.richter@amd.com>
Thu, 7 May 2009 15:28:59 +0000 (17:28 +0200)
committerRobert Richter <robert.richter@amd.com>
Thu, 7 May 2009 15:28:59 +0000 (17:28 +0200)
commit0f8a74f135521e73fe6c2e54ff1190dfee3d723b
tree058b9a96ed4fa2c963d18d0a66c2d3a5af38d881
parent1a1265eecfaf92593506edad6a71f2e069a7da76
oprofile: fix cpu buffer size

The unit of oprofile_cpu_buffer_size is in samples, but was allocated
in bytes. This led to the allocation of too small cpu buffers. This
patch recalculates the buffer size in bytes taking also the
ring_buffer_event header size into account.

Reported-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Signed-off-by: Robert Richter <robert.richter@amd.com>
drivers/oprofile/cpu_buffer.c