output-stats.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  StatsRecord_
struct  StatsTable_


typedef struct StatsRecord_ StatsRecord
typedef struct StatsTable_ StatsTable
typedef int(* StatsLogger) (ThreadVars *, void *thread_data, const StatsTable *)


TmEcode OutputStatsLog (ThreadVars *tv, void *thread_data, StatsTable *st)
int OutputRegisterStatsLogger (const char *name, StatsLogger LogFunc, OutputCtx *, ThreadInitFunc ThreadInit, ThreadDeinitFunc ThreadDeinit, ThreadExitPrintStatsFunc ThreadExitPrintStats)
void TmModuleStatsLoggerRegister (void)
int OutputStatsLoggersRegistered (void)
void OutputStatsShutdown (void)

Detailed Description

Victor Julien

Stats Logger Output registration functions

Definition in file output-stats.h.

Typedef Documentation

typedef int(* StatsLogger) (ThreadVars *, void *thread_data, const StatsTable *)

Definition at line 47 of file output-stats.h.

typedef struct StatsRecord_ StatsRecord
typedef struct StatsTable_ StatsTable

Function Documentation

int OutputRegisterStatsLogger ( const char *  name,
StatsLogger  LogFunc,
OutputCtx ,
ThreadInitFunc  ThreadInit,
ThreadDeinitFunc  ThreadDeinit,
ThreadExitPrintStatsFunc  ThreadExitPrintStats 
int OutputStatsLoggersRegistered ( void  )

Definition at line 206 of file output-stats.c.

Referenced by StatsSetUI64().

Here is the caller graph for this function:

void OutputStatsShutdown ( void  )

Definition at line 213 of file output-stats.c.

References OutputStatsLogger_::next, and SCFree.

Referenced by RunModeShutDown().

Here is the caller graph for this function:

void TmModuleStatsLoggerRegister ( void  )

Definition at line 197 of file output-stats.c.

References TmModule_::cap_flags, TmModule_::name, TmModule_::ThreadDeinit, TmModule_::ThreadExitPrintStats, TmModule_::ThreadInit, tmm_modules, and TMM_STATSLOGGER.

Referenced by RegisterAllModules().

Here is the caller graph for this function: