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

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

◆ ADD

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

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

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

References de_ctx, DetectEngineCtx_::profile_sgh_ctx, and profiling_sghs_enabled.

◆ SCProfilingSghsGlobalInit()

void SCProfilingSghsGlobalInit ( void  )

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

References ConfGetNode(), ConfNodeChildValueIsTrue(), ConfNodeLookupChildValue(), PathIsAbsolute(), profiling_sghs_enabled, and strlcpy().

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