util-profiling-rulegroups.c File Reference
#include "suricata-common.h"
#include "decode.h"
#include "detect.h"
#include "detect-engine.h"
#include "conf.h"
#include "tm-threads.h"
#include "util-unittest.h"
#include "util-byte.h"
#include "util-profiling.h"
#include "util-profiling-locks.h"
Include dependency graph for util-profiling-rulegroups.c:

Go to the source code of this file.

Data Structures

struct  SCProfileSghData_
struct  SCProfileSghDetectCtx_


#define ADD(name)   de_ctx->profile_sgh_ctx->data[i].name += det_ctx->sgh_perf_data[i].name


typedef struct SCProfileSghData_ SCProfileSghData
typedef struct SCProfileSghDetectCtx_ SCProfileSghDetectCtx


void SCProfilingSghsGlobalInit (void)
void SCProfilingSghUpdateCounter (DetectEngineThreadCtx *det_ctx, const SigGroupHead *sgh)
 Update a rule counter. More...
void SCProfilingSghDestroyCtx (DetectEngineCtx *de_ctx)
void SCProfilingSghThreadSetup (SCProfileSghDetectCtx *ctx, DetectEngineThreadCtx *det_ctx)
void SCProfilingSghThreadCleanup (DetectEngineThreadCtx *det_ctx)
void SCProfilingSghInitCounters (DetectEngineCtx *de_ctx)
 Register the keyword profiling counters. More...


int profiling_sghs_enabled = 0

Detailed Description

Endace Technology Limited.
Victor Julien

An API for rule profiling operations.

Definition in file util-profiling-rulegroups.c.

Macro Definition Documentation

#define ADD (   name)    de_ctx->profile_sgh_ctx->data[i].name += det_ctx->sgh_perf_data[i].name

Typedef Documentation

Extra data for rule profiling.

Function Documentation

void SCProfilingSghDestroyCtx ( DetectEngineCtx de_ctx)

Definition at line 312 of file util-profiling-rulegroups.c.

References DetectEngineCtx_::profile_sgh_ctx.

Referenced by DetectEngineCtxFree().

Here is the caller graph for this function:

void SCProfilingSghInitCounters ( DetectEngineCtx de_ctx)

Register the keyword profiling counters.

de_ctxThe active DetectEngineCtx, used to get at the loaded rules.

Definition at line 377 of file util-profiling-rulegroups.c.

References BUG_ON, SCProfileSghDetectCtx_::cnt, SCProfileSghDetectCtx_::data, DetectEngineCtx_::profile_sgh_ctx, profiling_sghs_enabled, SCCalloc, SCLogPerf, and DetectEngineCtx_::sgh_array_cnt.

Referenced by SigAddressPrepareStage4().

Here is the caller graph for this function:

void SCProfilingSghThreadCleanup ( DetectEngineThreadCtx det_ctx)

Variable Documentation

int profiling_sghs_enabled = 0