Go to the documentation of this file.
80 SCLogDebug(
"OutputRegisterPacketLogger happy");
101 while (logger && store) {
110 logger = logger->
next;
131 SCLogDebug(
"OutputPacketLogThreadInit happy (*data %p)", *data);
142 ts->thread_data = retptr;
144 if (td->
store == NULL) {
148 while (tmp->
next != NULL)
157 logger = logger->
next;
169 while (logger && store) {
178 logger = logger->
next;
185 static uint32_t OutputPacketLoggerGetActiveCount(
void)
197 OutputPacketLog, OutputPacketLoggerGetActiveCount);
206 logger = next_logger;
ThreadDeinitFunc ThreadDeinit
struct OutputPacketLogger_ * next
void OutputRegisterRootLogger(ThreadInitFunc ThreadInit, ThreadDeinitFunc ThreadDeinit, OutputLogFunc LogFunc, OutputGetActiveCountFunc ActiveCntFunc)
struct OutputLoggerThreadStore_ * next
int(* PacketLogger)(ThreadVars *, void *thread_data, const Packet *)
Packet logger function pointer type.
void OutputPacketShutdown(void)
Per thread variable structure.
TmEcode(* ThreadInitFunc)(ThreadVars *, const void *, void **)
PacketLogCondition ConditionFunc
void OutputPacketLoggerRegister(void)
OutputLoggerThreadStore * store
int SCOutputRegisterPacketLogger(LoggerId logger_id, const char *name, PacketLogger LogFunc, PacketLogCondition ConditionFunc, void *initdata, ThreadInitFunc ThreadInit, ThreadDeinitFunc ThreadDeinit)
Register a packet logger.
#define PACKET_PROFILING_LOGGER_END(p, id)
struct OutputPacketLogger_ OutputPacketLogger
bool(* PacketLogCondition)(ThreadVars *, void *thread_data, const Packet *)
Packet logger condition function point type.
#define PACKET_PROFILING_LOGGER_START(p, id)
struct OutputPacketLoggerThreadData_ OutputPacketLoggerThreadData
ThreadInitFunc ThreadInit
#define DEBUG_VALIDATE_BUG_ON(exp)
TmEcode(* ThreadDeinitFunc)(ThreadVars *, void *)