From 905050a053e039745ae5a3cdcf8e5865820e4247 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Wed, 27 Apr 2022 16:49:24 +0200 Subject: [PATCH] app-layer/profiling: hide profiling code behind guards --- src/app-layer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app-layer.c b/src/app-layer.c index 01be13c65d..f7c55dcf70 100644 --- a/src/app-layer.c +++ b/src/app-layer.c @@ -959,6 +959,7 @@ void AppLayerDestroyCtxThread(AppLayerThreadCtx *app_tctx) SCReturn; } +#ifdef PROFILING void AppLayerProfilingResetInternal(AppLayerThreadCtx *app_tctx) { PACKET_PROFILING_APP_RESET(app_tctx); @@ -968,6 +969,7 @@ void AppLayerProfilingStoreInternal(AppLayerThreadCtx *app_tctx, Packet *p) { PACKET_PROFILING_APP_STORE(app_tctx, p); } +#endif /** \brief HACK to work around our broken unix manager (re)init loop */