Performance: split check deliver fast/slow paths
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sat, 16 Jul 2016 14:07:55 +0000 (10:07 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sun, 21 Aug 2016 20:19:38 +0000 (16:19 -0400)
commitaece661f429d4ca54cf1e47bacc556679c28f342
treec667c55e1555cca36da3459f54adf74600918194
parentb0f393f2614b6dbafc49cfbb9ccb40cf6d497398
Performance: split check deliver fast/slow paths

Performance improvement changelog from lttng-ust, ported back to
lttng-modules:

On ARMv7l (Cubietruck), the compiler generates a function call for each
lib_ring_buffer_check_deliver, even though it typically only do an
unlikely check. Split it into an inline fast path, and a function call
for the slow path. This brings a performance gain of about 500ns/event
on the Cubietruck.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
lib/ringbuffer/frontend_internal.h
lib/ringbuffer/ring_buffer_frontend.c
This page took 0.025121 seconds and 4 git commands to generate.