|
suricata
|
#include "tm-modules.h"

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) |
| void | TmModuleStatsLoggerRegister (void) |
| int | OutputStatsLoggersRegistered (void) |
| void | OutputStatsShutdown (void) |
Stats Logger Output registration functions
Definition in file output-stats.h.
| typedef int(* StatsLogger) (ThreadVars *, void *thread_data, const StatsTable *) |
Definition at line 50 of file output-stats.h.
| typedef struct StatsRecord_ StatsRecord |
| typedef struct StatsTable_ StatsTable |
| int OutputRegisterStatsLogger | ( | const char * | name, |
| StatsLogger | LogFunc, | ||
| OutputCtx * | output_ctx, | ||
| ThreadInitFunc | ThreadInit, | ||
| ThreadDeinitFunc | ThreadDeinit | ||
| ) |
Definition at line 51 of file output-stats.c.
References OutputStatsLogger_::LogFunc, OutputStatsLogger_::name, name, OutputStatsLogger_::next, OutputStatsLogger_::output_ctx, SCCalloc, SCLogDebug, OutputStatsLogger_::ThreadDeinit, and OutputStatsLogger_::ThreadInit.
| TmEcode OutputStatsLog | ( | ThreadVars * | tv, |
| void * | thread_data, | ||
| StatsTable * | st | ||
| ) |
Definition at line 77 of file output-stats.c.
References DEBUG_VALIDATE_BUG_ON, OutputStatsLogger_::LogFunc, OutputStatsLogger_::next, OutputLoggerThreadStore_::next, OutputStatsLoggerThreadData_::store, OutputLoggerThreadStore_::thread_data, TM_ECODE_OK, and tv.
| int OutputStatsLoggersRegistered | ( | void | ) |
Definition at line 177 of file output-stats.c.
| void OutputStatsShutdown | ( | void | ) |
Definition at line 184 of file output-stats.c.
References OutputStatsLogger_::next, and SCFree.
Referenced by RunModeShutDown().

| void TmModuleStatsLoggerRegister | ( | void | ) |
Definition at line 169 of file output-stats.c.
References TmModule_::cap_flags, TmModule_::name, TmModule_::ThreadDeinit, TmModule_::ThreadInit, tmm_modules, and TMM_STATSLOGGER.
Referenced by RegisterAllModules().
