Home
last modified time | relevance | path

Searched refs:global_thread_ctx (Results 1 – 3 of 3) sorted by relevance

/dports/security/suricata/suricata-6.0.4/src/
H A Dutil-spm-hs.c101 global_thread_ctx->ctx = scratch; in HSBuildDatabase()
129 global_thread_ctx) != 0) { in HSInitCtx()
172 if (global_thread_ctx == NULL) { in HSInitGlobalThreadCtx()
176 memset(global_thread_ctx, 0, sizeof(*global_thread_ctx)); in HSInitGlobalThreadCtx()
177 global_thread_ctx->matcher = SPM_HS; in HSInitGlobalThreadCtx()
181 global_thread_ctx->ctx = NULL; in HSInitGlobalThreadCtx()
183 return global_thread_ctx; in HSInitGlobalThreadCtx()
188 if (global_thread_ctx == NULL) { in HSDestroyGlobalThreadCtx()
191 hs_free_scratch(global_thread_ctx->ctx); in HSDestroyGlobalThreadCtx()
192 SCFree(global_thread_ctx); in HSDestroyGlobalThreadCtx()
[all …]
H A Dutil-spm-bm.c391 SpmGlobalThreadCtx *global_thread_ctx) in BMInitCtx() argument
465 SpmGlobalThreadCtx *global_thread_ctx = SCMalloc(sizeof(SpmGlobalThreadCtx)); in BMInitGlobalThreadCtx() local
466 if (global_thread_ctx == NULL) { in BMInitGlobalThreadCtx()
470 memset(global_thread_ctx, 0, sizeof(*global_thread_ctx)); in BMInitGlobalThreadCtx()
471 global_thread_ctx->matcher = SPM_BM; in BMInitGlobalThreadCtx()
472 return global_thread_ctx; in BMInitGlobalThreadCtx()
475 static void BMDestroyGlobalThreadCtx(SpmGlobalThreadCtx *global_thread_ctx) in BMDestroyGlobalThreadCtx() argument
477 if (global_thread_ctx == NULL) { in BMDestroyGlobalThreadCtx()
480 SCFree(global_thread_ctx); in BMDestroyGlobalThreadCtx()
491 static SpmThreadCtx *BMMakeThreadCtx(const SpmGlobalThreadCtx *global_thread_ctx) { in BMMakeThreadCtx() argument
H A Dutil-spm.c147 if (global_thread_ctx == NULL) { in SpmDestroyGlobalThreadCtx()
150 uint16_t matcher = global_thread_ctx->matcher; in SpmDestroyGlobalThreadCtx()
156 if (global_thread_ctx == NULL) { in SpmMakeThreadCtx()
159 uint16_t matcher = global_thread_ctx->matcher; in SpmMakeThreadCtx()
175 SpmGlobalThreadCtx *global_thread_ctx) in SpmInitCtx() argument
177 BUG_ON(global_thread_ctx == NULL); in SpmInitCtx()
178 uint16_t matcher = global_thread_ctx->matcher; in SpmInitCtx()
2485 SpmGlobalThreadCtx *global_thread_ctx = NULL; in SpmTestSearch() local
2491 if (global_thread_ctx == NULL) { in SpmTestSearch()
2497 global_thread_ctx); in SpmTestSearch()
[all …]