|
|
|
@ -128,10 +128,14 @@ void DetectMpmInitializeAppMpms(DetectEngineCtx *de_ctx)
|
|
|
|
|
shared = confshared;
|
|
|
|
|
|
|
|
|
|
if (shared == 0) {
|
|
|
|
|
if (!(de_ctx->flags & DE_QUIET)) {
|
|
|
|
|
SCLogInfo("using unique mpm ctx' for %s", am->name);
|
|
|
|
|
}
|
|
|
|
|
am->sgh_mpm_context = MPM_CTX_FACTORY_UNIQUE_CONTEXT;
|
|
|
|
|
} else {
|
|
|
|
|
if (!(de_ctx->flags & DE_QUIET)) {
|
|
|
|
|
SCLogInfo("using shared mpm ctx' for %s", am->name);
|
|
|
|
|
}
|
|
|
|
|
am->sgh_mpm_context = MpmFactoryRegisterMpmCtxProfile(de_ctx, am->name);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -821,6 +825,7 @@ void MpmStoreReportStats(const DetectEngineCtx *de_ctx)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (!(de_ctx->flags & DE_QUIET)) {
|
|
|
|
|
uint32_t x;
|
|
|
|
|
for (x = 0; x < MPMB_MAX; x++) {
|
|
|
|
|
SCLogInfo("Builtin MPM \"%s\": %u", builtin_mpms[x], stats[x]);
|
|
|
|
@ -833,6 +838,7 @@ void MpmStoreReportStats(const DetectEngineCtx *de_ctx)
|
|
|
|
|
SCLogInfo("AppLayer MPM \"%s %s\": %u", direction, name, appstats[x]);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Frees the hash table - DetectEngineCtx->mpm_hash_table, allocated by
|
|
|
|
|