OProfile: Fix buffer synchronization for IBS
authorBarry Kasindorf <barry.kasindorf@amd.com>
Mon, 14 Jul 2008 22:10:36 +0000 (00:10 +0200)
committerRobert Richter <robert.richter@amd.com>
Mon, 20 Oct 2008 11:44:21 +0000 (13:44 +0200)
commit9b1f261166f56d4b2c33fdf5aad64edd5e30b46f
tree748011b45dc178a218df9146921ca027fa99b2cc
parent4bd9b9dc97e344670e9e5762399a07dcd5f15311
OProfile: Fix buffer synchronization for IBS

The patch is needed since there is some IBS code in add_ibs_begin()
that handles more than one sample per iteration. This requires calling
get_slots() during each loop.

This fixes the current problem, but a proper solution that reworks the
cpu buffer synchronization is needed here in the future.

Signed-off-by: Barry Kasindorf <barry.kasindorf@amd.com>
Signed-off-by: Robert Richter <robert.richter@amd.com>
drivers/oprofile/buffer_sync.c