suricata
util-profiling-prefilter.c File Reference
#include "suricata-common.h"
#include "decode.h"
#include "detect.h"
#include "detect-engine.h"
#include "detect-engine-prefilter.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-prefilter.c:

Go to the source code of this file.

Data Structures

struct  SCProfilePrefilterData_
 
struct  SCProfilePrefilterDetectCtx_
 

Typedefs

typedef struct SCProfilePrefilterData_ SCProfilePrefilterData
 
typedef struct SCProfilePrefilterDetectCtx_ SCProfilePrefilterDetectCtx
 

Functions

void SCProfilingPrefilterGlobalInit (void)
 
void SCProfilingPrefilterUpdateCounter (DetectEngineThreadCtx *det_ctx, int id, uint64_t ticks)
 Update a rule counter. More...
 
void SCProfilingPrefilterDestroyCtx (DetectEngineCtx *de_ctx)
 
void SCProfilingPrefilterThreadSetup (SCProfilePrefilterDetectCtx *ctx, DetectEngineThreadCtx *det_ctx)
 
void SCProfilingPrefilterThreadCleanup (DetectEngineThreadCtx *det_ctx)
 
void SCProfilingPrefilterInitCounters (DetectEngineCtx *de_ctx)
 Register the prefilter profiling counters. More...
 

Variables

int profiling_prefilter_enabled = 0
 
__thread int profiling_prefilter_entered = 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-prefilter.c.

Typedef Documentation

Function Documentation

void SCProfilingPrefilterDestroyCtx ( DetectEngineCtx de_ctx)

Definition at line 223 of file util-profiling-prefilter.c.

References DetectEngineCtx_::profile_prefilter_ctx.

Referenced by DetectEngineCtxFree().

Here is the caller graph for this function:

void SCProfilingPrefilterInitCounters ( DetectEngineCtx de_ctx)

Register the prefilter profiling counters.

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

Definition at line 280 of file util-profiling-prefilter.c.

References BUG_ON, SCProfilePrefilterDetectCtx_::data, HashListTableGetListData, HashListTableGetListHead(), HashListTableGetListNext, PrefilterStore_::id, PrefilterStore_::name, SCProfilePrefilterData_::name, DetectEngineCtx_::prefilter_hash_table, DetectEngineCtx_::prefilter_id, DetectEngineCtx_::profile_prefilter_ctx, profiling_prefilter_enabled, SCLogDebug, SCLogPerf, SCMalloc, and SCProfilePrefilterDetectCtx_::size.

Referenced by SigGroupBuild().

Here is the call graph for this function:

Here is the caller graph for this function:

void SCProfilingPrefilterThreadCleanup ( DetectEngineThreadCtx det_ctx)
void SCProfilingPrefilterUpdateCounter ( DetectEngineThreadCtx det_ctx,
int  id,
uint64_t  ticks 
)

Variable Documentation

int profiling_prefilter_enabled = 0
__thread int profiling_prefilter_entered = 0

Definition at line 59 of file util-profiling-prefilter.c.