util-profiling-keywords.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-keywords.c:

Go to the source code of this file.

Data Structures

struct  SCProfileKeywordData_
struct  SCProfileKeywordDetectCtx_


typedef struct SCProfileKeywordData_ SCProfileKeywordData
typedef struct SCProfileKeywordDetectCtx_ SCProfileKeywordDetectCtx


void SCProfilingKeywordsGlobalInit (void)
void SCProfilingKeywordUpdateCounter (DetectEngineThreadCtx *det_ctx, int id, uint64_t ticks, int match)
 Update a rule counter. More...
void SCProfilingKeywordDestroyCtx (DetectEngineCtx *de_ctx)
void SCProfilingKeywordThreadSetup (SCProfileKeywordDetectCtx *ctx, DetectEngineThreadCtx *det_ctx)
void SCProfilingKeywordThreadCleanup (DetectEngineThreadCtx *det_ctx)
void SCProfilingKeywordInitCounters (DetectEngineCtx *de_ctx)
 Register the keyword profiling counters. More...


int profiling_keyword_enabled = 0
__thread int profiling_keyword_entered = 0

Detailed Description

Endace Technology Limited.
Victor Julien

An API for rule profiling operations.

Definition in file util-profiling-keywords.c.

Typedef Documentation

Extra data for rule profiling.

Function Documentation

void SCProfilingKeywordDestroyCtx ( DetectEngineCtx de_ctx)

Definition at line 278 of file util-profiling-keywords.c.

References DetectEngineCtx_::buffer_type_id, DetectEngineCtx_::profile_keyword_ctx, DetectEngineCtx_::profile_keyword_ctx_per_list, and SCFree.

Referenced by DetectEngineCtxFree().

Here is the caller graph for this function:

void SCProfilingKeywordInitCounters ( DetectEngineCtx de_ctx)

Register the keyword profiling counters.

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

Definition at line 378 of file util-profiling-keywords.c.

References DetectEngineCtx_::buffer_type_id, BUG_ON, SCProfileKeywordDetectCtx_::data, DETECT_TBLSIZE, DetectEngineCtx_::profile_keyword_ctx, DetectEngineCtx_::profile_keyword_ctx_per_list, profiling_keyword_enabled, SCCalloc, SCLogPerf, and SCMalloc.

Referenced by SigGroupBuild().

Here is the caller graph for this function:

Variable Documentation

int profiling_keyword_enabled = 0
__thread int profiling_keyword_entered = 0

Definition at line 65 of file util-profiling-keywords.c.