• P
    perf: Optimize perf_output_begin() -- lost_event case · d20a973f
    Peter Zijlstra 提交于
    Avoid touching the lost_event and sample_data cachelines twince. Its
    not like we end up doing less work, but it might help to keep all
    accesses to these cachelines in one place.
    
    Due to code shuffle, this looses 4 bytes on x86_64-defconfig.
    Signed-off-by: NPeter Zijlstra <peterz@infradead.org>
    Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
    Cc: Frederic Weisbecker <fweisbec@gmail.com>
    Cc: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
    Cc: Michael Ellerman <michael@ellerman.id.au>
    Cc: Michael Neuling <mikey@neuling.org>
    Cc: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
    Cc: james.hogan@imgtec.com
    Cc: Vince Weaver <vince@deater.net>
    Cc: Victor Kaplansky <VICTORK@il.ibm.com>
    Cc: Oleg Nesterov <oleg@redhat.com>
    Cc: Anton Blanchard <anton@samba.org>
    Link: http://lkml.kernel.org/n/tip-zfxnc58qxj0eawdoj31hhupv@git.kernel.orgSigned-off-by: NIngo Molnar <mingo@kernel.org>
    d20a973f
ring_buffer.c 8.8 KB