|
|
|
@ -446,11 +446,15 @@ static void *SCPerfMgmtThread(void *arg)
|
|
|
|
SCLogWarning(SC_ERR_THREAD_INIT, "Unable to set thread name");
|
|
|
|
SCLogWarning(SC_ERR_THREAD_INIT, "Unable to set thread name");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (tv_local->thread_setup_flags != 0)
|
|
|
|
|
|
|
|
TmThreadSetupOptions(tv_local);
|
|
|
|
|
|
|
|
|
|
|
|
/* Set the threads capability */
|
|
|
|
/* Set the threads capability */
|
|
|
|
tv_local->cap_flags = 0;
|
|
|
|
tv_local->cap_flags = 0;
|
|
|
|
|
|
|
|
|
|
|
|
SCDropCaps(tv_local);
|
|
|
|
SCDropCaps(tv_local);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (sc_perf_op_ctx == NULL) {
|
|
|
|
if (sc_perf_op_ctx == NULL) {
|
|
|
|
SCLogError(SC_ERR_PERF_STATS_NOT_INIT, "Perf Counter API not init"
|
|
|
|
SCLogError(SC_ERR_PERF_STATS_NOT_INIT, "Perf Counter API not init"
|
|
|
|
"SCPerfInitCounterApi() has to be called first");
|
|
|
|
"SCPerfInitCounterApi() has to be called first");
|
|
|
|
@ -507,6 +511,9 @@ static void *SCPerfWakeupThread(void *arg)
|
|
|
|
SCLogWarning(SC_ERR_THREAD_INIT, "Unable to set thread name");
|
|
|
|
SCLogWarning(SC_ERR_THREAD_INIT, "Unable to set thread name");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (tv_local->thread_setup_flags != 0)
|
|
|
|
|
|
|
|
TmThreadSetupOptions(tv_local);
|
|
|
|
|
|
|
|
|
|
|
|
/* Set the threads capability */
|
|
|
|
/* Set the threads capability */
|
|
|
|
tv_local->cap_flags = 0;
|
|
|
|
tv_local->cap_flags = 0;
|
|
|
|
|
|
|
|
|
|
|
|
|