From: Victor Julien Date: Fri, 22 May 2015 12:16:10 +0000 (+0200) Subject: counters: minor cleanups X-Git-Tag: suricata-3.0RC1~399 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9f584483becf86cf91e7ee1ab6846d63210630d4;p=thirdparty%2Fsuricata.git counters: minor cleanups --- diff --git a/src/counters.c b/src/counters.c index 6840fa9ea8..cb9f3032ed 100644 --- a/src/counters.c +++ b/src/counters.c @@ -1219,14 +1219,13 @@ SCPerfCounterArray *SCPerfGetAllCountersArray(SCPerfContext *pctx) * * \param pca Pointer to the SCPerfCounterArray * \param pctx Pointer the the tv's SCPerfContext - * \param reset_lc Indicates whether the local counter has to be reset or not * * \retval 0 on success * \retval -1 on error */ int SCPerfUpdateCounterArray(SCPerfCounterArray *pca, SCPerfContext *pctx) { - SCPerfCounter *pc = NULL; + SCPerfCounter *pc = NULL; SCPCAElem *pcae = NULL; uint32_t i = 0; diff --git a/src/threadvars.h b/src/threadvars.h index 64c215bcca..6ecdda25db 100644 --- a/src/threadvars.h +++ b/src/threadvars.h @@ -101,8 +101,12 @@ typedef struct ThreadVars_ { uint16_t rank; int thread_priority; /** priority (real time) for this thread. Look at threads.h */ - /* the perf counter context and the perf counter array */ + /* counters */ + + /** public counter store: counter syncs update this */ SCPerfContext sc_perf_pctx; + + /** private counter store: counter updates modify this */ SCPerfCounterArray *sc_perf_pca; SCCtrlMutex *ctrl_mutex;