• John Levon's avatar
    [PATCH] OProfile: minimize sample error · 0d22b578
    John Levon authored
    The code that attempts to reset last_task and in_kernel has a race
    against samples appearing during the handling of the buffers, that
    causes a small number of mis-attribution of samples. Closing the
    window is non-obvious, and not worth it, so we just make it smaller.
    Even without the patch, there seem to be few such "bad" samples
    because its effects are mitigated on a switch into userspace or
    a task switch.
    0d22b578
buffer_sync.c 11.8 KB