suricata
|
#include "suricata-common.h"
#include "output.h"
#include "output-stats.h"
#include "util-validate.h"
Go to the source code of this file.
Data Structures | |
struct | OutputStatsLoggerThreadData_ |
struct | OutputStatsLogger_ |
Typedefs | |
typedef struct OutputStatsLoggerThreadData_ | OutputStatsLoggerThreadData |
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) |
Stats Logger Output registration functions
Definition in file output-stats.c.
typedef struct OutputStatsLogger_ OutputStatsLogger |
typedef struct OutputStatsLoggerThreadData_ OutputStatsLoggerThreadData |
per thread data for this module, contains a list of per thread data for the packet loggers.
int OutputRegisterStatsLogger | ( | const char * | name, |
StatsLogger | LogFunc, | ||
OutputCtx * | output_ctx, | ||
ThreadInitFunc | ThreadInit, | ||
ThreadDeinitFunc | ThreadDeinit, | ||
ThreadExitPrintStatsFunc | ThreadExitPrintStats | ||
) |
Definition at line 52 of file output-stats.c.
References OutputStatsLogger_::LogFunc, OutputStatsLogger_::name, OutputStatsLogger_::output_ctx, SCMalloc, OutputStatsLogger_::ThreadDeinit, OutputStatsLogger_::ThreadExitPrintStats, and OutputStatsLogger_::ThreadInit.
TmEcode OutputStatsLog | ( | ThreadVars * | tv, |
void * | thread_data, | ||
StatsTable * | st | ||
) |
Definition at line 82 of file output-stats.c.
References DEBUG_VALIDATE_BUG_ON.
int OutputStatsLoggersRegistered | ( | void | ) |
Definition at line 201 of file output-stats.c.
void OutputStatsShutdown | ( | void | ) |
Definition at line 208 of file output-stats.c.
void TmModuleStatsLoggerRegister | ( | void | ) |
Definition at line 192 of file output-stats.c.
References TmModule_::name, TmModule_::ThreadInit, tmm_modules, and TMM_STATSLOGGER.
Referenced by RegisterAllModules().