Go to the documentation of this file.
64 memset(op, 0x00,
sizeof(*op));
84 SCLogDebug(
"OutputRegisterPacketLogger happy");
105 while (logger && store) {
114 logger = logger->
next;
127 static TmEcode OutputPacketLogThreadInit(
ThreadVars *
tv,
const void *initdata,
void **data)
132 memset(td, 0x00,
sizeof(*td));
136 SCLogDebug(
"OutputPacketLogThreadInit happy (*data %p)", *data);
145 memset(
ts, 0x00,
sizeof(*
ts));
148 ts->thread_data = retptr;
150 if (td->
store == NULL) {
154 while (tmp->
next != NULL)
163 logger = logger->
next;
175 while (logger && store) {
184 logger = logger->
next;
191 static void OutputPacketLogExitPrintStats(
ThreadVars *
tv,
void *thread_data)
197 while (logger && store) {
202 logger = logger->
next;
207 static uint32_t OutputPacketLoggerGetActiveCount(
void)
219 OutputPacketLogThreadDeinit, OutputPacketLogExitPrintStats,
220 OutputPacketLog, OutputPacketLoggerGetActiveCount);
229 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 *)
int(* 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)