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;
185static uint32_t OutputPacketLoggerGetActiveCount(
void)
197 OutputPacketLog, OutputPacketLoggerGetActiveCount);
206 logger = next_logger;
void OutputPacketLoggerRegister(void)
struct OutputPacketLogger_ OutputPacketLogger
struct OutputPacketLoggerThreadData_ OutputPacketLoggerThreadData
int SCOutputRegisterPacketLogger(LoggerId logger_id, const char *name, PacketLogger LogFunc, PacketLogCondition ConditionFunc, void *initdata, ThreadInitFunc ThreadInit, ThreadDeinitFunc ThreadDeinit)
Register a packet logger.
void OutputPacketShutdown(void)
bool(* PacketLogCondition)(ThreadVars *, void *thread_data, const Packet *)
Packet logger condition function point type.
int(* PacketLogger)(ThreadVars *, void *thread_data, const Packet *)
Packet logger function pointer type.
void OutputRegisterRootLogger(ThreadInitFunc ThreadInit, ThreadDeinitFunc ThreadDeinit, OutputLogFunc LogFunc, OutputGetActiveCountFunc ActiveCntFunc)
struct OutputLoggerThreadStore_ * next
OutputLoggerThreadStore * store
struct OutputPacketLogger_ * next
PacketLogCondition ConditionFunc
ThreadInitFunc ThreadInit
ThreadDeinitFunc ThreadDeinit
Per thread variable structure.
TmEcode(* ThreadDeinitFunc)(ThreadVars *, void *)
TmEcode(* ThreadInitFunc)(ThreadVars *, const void *, void **)
#define PACKET_PROFILING_LOGGER_END(p, id)
#define PACKET_PROFILING_LOGGER_START(p, id)
#define DEBUG_VALIDATE_BUG_ON(exp)