aboutsummaryrefslogtreecommitdiff
path: root/drivers/oprofile/event_buffer.h
diff options
context:
space:
mode:
authorRobert Richter <robert.richter@amd.com>2009-05-07 17:28:59 +0200
committerRobert Richter <robert.richter@amd.com>2009-05-07 17:28:59 +0200
commit54f2c841fa0007e5fee3b7d01a911c774f0a6cda (patch)
tree058b9a96ed4fa2c963d18d0a66c2d3a5af38d881 /drivers/oprofile/event_buffer.h
parent091438dd5668396328a3419abcbc6591159eb8d1 (diff)
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>
Diffstat (limited to 'drivers/oprofile/event_buffer.h')
0 files changed, 0 insertions, 0 deletions