util-profiling-rulegroups.c File Reference
#include "suricata-common.h"
#include "util-profiling.h"
#include "util-conf.h"
#include "util-time.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

◆ SCProfileSghData

Extra data for rule profiling.

◆ SCProfileSghDetectCtx

Function Documentation

◆ SCProfilingSghDestroyCtx()

void SCProfilingSghDestroyCtx ( DetectEngineCtx de_ctx)

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

References de_ctx.

Referenced by DetectEngineCtxFree().

Here is the caller graph for this function:

◆ SCProfilingSghInitCounters()

void SCProfilingSghInitCounters ( DetectEngineCtx de_ctx)

Register the keyword profiling counters.

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

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

References de_ctx, DetectEngineCtx_::profile_sgh_ctx, and profiling_sghs_enabled.

◆ SCProfilingSghsGlobalInit()

void SCProfilingSghsGlobalInit ( void  )

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

References ConfGetNode(), ConfigGetLogDirectory(), ConfNodeChildValueIsTrue(), ConfNodeLookupChildValue(), and profiling_sghs_enabled.

Referenced by PreRunInit().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCProfilingSghThreadCleanup()

◆ SCProfilingSghThreadSetup()

◆ SCProfilingSghUpdateCounter()

Variable Documentation

◆ profiling_sghs_enabled

int profiling_sghs_enabled = 0