suricata
output-stats.h File Reference
#include "tm-modules.h"
Include dependency graph for output-stats.h:
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_
 

Typedefs

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

Functions

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

Author
Victor Julien victo.nosp@m.r@in.nosp@m.linia.nosp@m.c.ne.nosp@m.t

Stats Logger Output registration functions

Definition in file output-stats.h.

Typedef Documentation

◆ StatsLogger

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

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

◆ StatsRecord

typedef struct StatsRecord_ StatsRecord

◆ StatsTable

typedef struct StatsTable_ StatsTable

Function Documentation

◆ OutputRegisterStatsLogger()

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

◆ OutputStatsLog()

TmEcode OutputStatsLog ( ThreadVars tv,
void *  thread_data,
StatsTable st 
)

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

References DEBUG_VALIDATE_BUG_ON.

◆ OutputStatsLoggersRegistered()

int OutputStatsLoggersRegistered ( void  )

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

◆ OutputStatsShutdown()

void OutputStatsShutdown ( void  )

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

◆ TmModuleStatsLoggerRegister()

void TmModuleStatsLoggerRegister ( void  )

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

References TmModule_::name, TmModule_::ThreadInit, tmm_modules, and TMM_STATSLOGGER.

Referenced by RegisterAllModules().

Here is the caller graph for this function: