• Robert Richter's avatar
    oprofile: remove nr_available_slots() · 1d7503b5
    Robert Richter authored
    This function is no longer available after the port to the new ring
    buffer. Its removal can lead to incomplete sampling sequences since
    IBS samples and backtraces are transfered in multiple samples. Due to
    a full buffer, samples could be lost any time. The userspace daemon
    has to live with such incomplete sampling sequences as long as the
    data within one sample is consistent.
    
    This will be fixed by changing the internal buffer data there all data
    of one IBS sample or a backtrace is packed in a single ring buffer
    entry. This is possible since the new ring buffer supports variable
    data size.
    Signed-off-by: default avatarRobert Richter <robert.richter@amd.com>
    1d7503b5
cpu_buffer.c 8.46 KB