suricata
output-stats.c File Reference
#include "suricata-common.h"
#include "tm-modules.h"
#include "output-stats.h"
#include "util-validate.h"
Include dependency graph for output-stats.c:

Go to the source code of this file.

Data Structures

struct  OutputLoggerThreadStore_
 
struct  OutputLoggerThreadData_
 
struct  OutputStatsLogger_
 

Typedefs

typedef struct OutputLoggerThreadStore_ OutputLoggerThreadStore
 
typedef struct OutputLoggerThreadData_ OutputLoggerThreadData
 
typedef struct OutputStatsLogger_ OutputStatsLogger
 

Functions

int OutputRegisterStatsLogger (const char *name, StatsLogger LogFunc, OutputCtx *output_ctx, ThreadInitFunc ThreadInit, ThreadDeinitFunc ThreadDeinit, ThreadExitPrintStatsFunc ThreadExitPrintStats)
 
TmEcode OutputStatsLog (ThreadVars *tv, void *thread_data, StatsTable *st)
 
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.c.

Typedef Documentation

◆ OutputLoggerThreadData

per thread data for this module, contains a list of per thread data for the packet loggers.

◆ OutputLoggerThreadStore

◆ OutputStatsLogger

Function Documentation

◆ OutputRegisterStatsLogger()

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

◆ OutputStatsLog()

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

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

References DEBUG_VALIDATE_BUG_ON.

◆ OutputStatsLoggersRegistered()

int OutputStatsLoggersRegistered ( void  )

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

◆ OutputStatsShutdown()

void OutputStatsShutdown ( void  )

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

◆ TmModuleStatsLoggerRegister()

void TmModuleStatsLoggerRegister ( void  )

Definition at line 197 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: