]> git.ipfire.org Git - thirdparty/suricata.git/commit
Make AppLayerProfiling functions inline 1184/head
authorKen Steele <ken@tilera.com>
Mon, 6 Oct 2014 15:40:58 +0000 (11:40 -0400)
committerVictor Julien <victor@inliniac.net>
Sat, 25 Oct 2014 18:26:53 +0000 (20:26 +0200)
commitb2b1239ddfcadf15cda248f4297e727343e2171c
treebd9d282bdb58e13b54cc61a87ff40fc14b04aa33
parent07fffa6a7d1b32363b7e892019dc50927177888a
Make AppLayerProfiling functions inline

The entire body of these functions are protected by ifdef PROFILING.
If the functions are inlined, then this check removes the need for the
function entirely.

Previously, the empty function was still called, even when not built
for profiling. The functions showed as being 0.25% of total CPU time
without being built for profiling.
src/app-layer.c
src/app-layer.h