suricata
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_
 

Macros

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

Typedefs

typedef struct SCProfileSghData_ SCProfileSghData
 
typedef struct SCProfileSghDetectCtx_ SCProfileSghDetectCtx
 

Functions

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...
 

Variables

int profiling_sghs_enabled = 0
 

Detailed Description

Author
Endace Technology Limited.
Victor Julien victo.nosp@m.r@in.nosp@m.linia.nosp@m.c.ne.nosp@m.t

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 323 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.

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

Definition at line 388 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