• S
    ring_buffer: map to cpu not page · aa1e0e3b
    Steven Rostedt 提交于
    My original patch had a compile bug when NUMA was configured. I
    referenced cpu when it should have been cpu_buffer->cpu.
    
    Ingo quickly fixed this bug by replacing cpu with 'i' because that
    was the loop counter. Unfortunately, the 'i' was the counter of
    pages, not CPUs. This caused a crash when the number of pages allocated
    for the buffers exceeded the number of pages, which would usually
    be the case.
    Signed-off-by: NSteven Rostedt <srostedt@redhat.com>
    Signed-off-by: NIngo Molnar <mingo@elte.hu>
    aa1e0e3b
ring_buffer.c 40.9 KB