SCReturn;
}
-/* profiling */
-
-void AppLayerProfilingReset(AppLayerThreadCtx *app_tctx)
+void AppLayerProfilingResetInternal(AppLayerThreadCtx *app_tctx)
{
-#ifdef PROFILING
PACKET_PROFILING_APP_RESET(app_tctx);
-#endif
}
-void AppLayerProfilingStore(AppLayerThreadCtx *app_tctx, Packet *p)
+void AppLayerProfilingStoreInternal(AppLayerThreadCtx *app_tctx, Packet *p)
{
-#ifdef PROFILING
PACKET_PROFILING_APP_STORE(app_tctx, p);
-#endif
}
/***** Unittests *****/
#include "stream-tcp-reassemble.h"
#include "stream.h"
+#include "util-profiling.h"
+
#define APP_LAYER_DATA_ALREADY_SENT_TO_APP_LAYER \
(~STREAM_TOSERVER & ~STREAM_TOCLIENT)
void AppLayerDestroyCtxThread(AppLayerThreadCtx *tctx);
-void AppLayerProfilingReset(AppLayerThreadCtx *tctx);
-void AppLayerProfilingStore(AppLayerThreadCtx *tctx, Packet *p);
+/***** Profiling *****/
+
+void AppLayerProfilingResetInternal(AppLayerThreadCtx *app_tctx);
+
+static inline void AppLayerProfilingReset(AppLayerThreadCtx *app_tctx)
+{
+#ifdef PROFILING
+ AppLayerProfilingResetInternal(app_tctx);
+#endif
+}
+
+void AppLayerProfilingStoreInternal(AppLayerThreadCtx *app_tctx, Packet *p);
+
+static inline void AppLayerProfilingStore(AppLayerThreadCtx *app_tctx, Packet *p)
+{
+#ifdef PROFILING
+ AppLayerProfilingStoreInternal(app_tctx, p);
+#endif
+}
+
/***** Unittests *****/