Go to the documentation of this file.
70 memset(op, 0x00,
sizeof(*op));
90 SCLogDebug(
"OutputRegisterPacketLogger happy");
111 while (logger && store) {
120 logger = logger->
next;
133 static TmEcode OutputPacketLogThreadInit(
ThreadVars *
tv,
const void *initdata,
void **data)
138 memset(td, 0x00,
sizeof(*td));
142 SCLogDebug(
"OutputPacketLogThreadInit happy (*data %p)", *data);
151 memset(
ts, 0x00,
sizeof(*
ts));
154 ts->thread_data = retptr;
156 if (td->
store == NULL) {
160 while (tmp->
next != NULL)
169 logger = logger->
next;
181 while (logger && store) {
190 logger = logger->
next;
197 static void OutputPacketLogExitPrintStats(
ThreadVars *
tv,
void *thread_data)
203 while (logger && store) {
208 logger = logger->
next;
213 static uint32_t OutputPacketLoggerGetActiveCount(
void)
225 OutputPacketLogThreadDeinit, OutputPacketLogExitPrintStats,
226 OutputPacketLog, OutputPacketLoggerGetActiveCount);
235 logger = next_logger;
ThreadDeinitFunc ThreadDeinit
struct OutputPacketLogger_ * next
struct OutputLoggerThreadStore_ * next
struct OutputLoggerThreadData_ OutputLoggerThreadData
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
struct OutputLoggerThreadStore_ OutputLoggerThreadStore
#define PACKET_PROFILING_LOGGER_END(p, id)
struct OutputPacketLogger_ OutputPacketLogger
void(* ThreadExitPrintStatsFunc)(ThreadVars *, void *)
int(* PacketLogCondition)(ThreadVars *, const Packet *)
#define PACKET_PROFILING_LOGGER_START(p, id)
void OutputRegisterRootLogger(ThreadInitFunc ThreadInit, ThreadDeinitFunc ThreadDeinit, ThreadExitPrintStatsFunc ThreadExitPrintStats, OutputLogFunc LogFunc, OutputGetActiveCountFunc ActiveCntFunc)
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)