]> Git Repo - linux.git/commit
perf: Optimize perf_output_begin() -- lost_event case
authorPeter Zijlstra <[email protected]>
Thu, 31 Oct 2013 16:29:29 +0000 (17:29 +0100)
committerIngo Molnar <[email protected]>
Wed, 6 Nov 2013 11:34:21 +0000 (12:34 +0100)
commitd20a973f46ed83e0d7d24f6c512064133038e193
tree67480d93b9ed6b23cede1e861aa4daf4bf345782
parent85f59edf9684603026c64c902791748116d29478
perf: Optimize perf_output_begin() -- lost_event case

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: Peter Zijlstra <[email protected]>
Cc: Benjamin Herrenschmidt <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Mathieu Desnoyers <[email protected]>
Cc: Michael Ellerman <[email protected]>
Cc: Michael Neuling <[email protected]>
Cc: "Paul E. McKenney" <[email protected]>
Cc: [email protected]
Cc: Vince Weaver <[email protected]>
Cc: Victor Kaplansky <[email protected]>
Cc: Oleg Nesterov <[email protected]>
Cc: Anton Blanchard <[email protected]>
Link: http://lkml.kernel.org/n/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
kernel/events/ring_buffer.c
This page took 0.053814 seconds and 4 git commands to generate.