Go to the documentation of this file.
83 SCLogDebug(
"OutputRegisterPacketLogger happy");
104 while (logger && store) {
113 logger = logger->
next;
126 static TmEcode OutputPacketLogThreadInit(
ThreadVars *
tv,
const void *initdata,
void **data)
134 SCLogDebug(
"OutputPacketLogThreadInit happy (*data %p)", *data);
145 ts->thread_data = retptr;
147 if (td->
store == NULL) {
151 while (tmp->
next != NULL)
160 logger = logger->
next;
172 while (logger && store) {
181 logger = logger->
next;
188 static void OutputPacketLogExitPrintStats(
ThreadVars *
tv,
void *thread_data)
194 while (logger && store) {
199 logger = logger->
next;
204 static uint32_t OutputPacketLoggerGetActiveCount(
void)
216 OutputPacketLogThreadDeinit, OutputPacketLogExitPrintStats,
217 OutputPacketLog, OutputPacketLoggerGetActiveCount);
226 logger = next_logger;
ThreadDeinitFunc ThreadDeinit
struct OutputPacketLogger_ * next
struct OutputLoggerThreadStore_ * next
int(* PacketLogger)(ThreadVars *, void *thread_data, const Packet *)
ThreadExitPrintStatsFunc ThreadExitPrintStats
void OutputPacketShutdown(void)
Per thread variable structure.
TmEcode(* ThreadInitFunc)(ThreadVars *, const void *, void **)
PacketLogCondition ConditionFunc
void OutputPacketLoggerRegister(void)
OutputLoggerThreadStore * store
#define PACKET_PROFILING_LOGGER_END(p, id)
struct OutputPacketLogger_ OutputPacketLogger
void(* ThreadExitPrintStatsFunc)(ThreadVars *, void *)
bool(* PacketLogCondition)(ThreadVars *, void *thread_data, const Packet *)
#define PACKET_PROFILING_LOGGER_START(p, id)
void OutputRegisterRootLogger(ThreadInitFunc ThreadInit, ThreadDeinitFunc ThreadDeinit, ThreadExitPrintStatsFunc ThreadExitPrintStats, OutputLogFunc LogFunc, OutputGetActiveCountFunc ActiveCntFunc)
struct OutputPacketLoggerThreadData_ OutputPacketLoggerThreadData
ThreadInitFunc ThreadInit
#define DEBUG_VALIDATE_BUG_ON(exp)
TmEcode(* ThreadDeinitFunc)(ThreadVars *, void *)
int OutputRegisterPacketLogger(LoggerId logger_id, const char *name, PacketLogger LogFunc, PacketLogCondition ConditionFunc, OutputCtx *output_ctx, ThreadInitFunc ThreadInit, ThreadDeinitFunc ThreadDeinit, ThreadExitPrintStatsFunc ThreadExitPrintStats)