]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
Counters: move perf critical var to the top of the SCPerfContext struct
authorVictor Julien <victor@inliniac.net>
Thu, 31 Oct 2013 08:31:08 +0000 (09:31 +0100)
committerVictor Julien <victor@inliniac.net>
Thu, 31 Oct 2013 11:32:36 +0000 (12:32 +0100)
src/counters.h

index a7f9c82ce8816cb0a704ecb4b70e8d400320ffe5..0b82042b15d11e5fd13c0cfa5846a1ffeecb487a 100644 (file)
@@ -89,12 +89,12 @@ typedef struct SCPerfCounter_ {
  * \brief Holds the Perf Context for a ThreadVars instance
  */
 typedef struct SCPerfContext_ {
-    /* pointer to the head of a list of counters assigned under this context */
-    SCPerfCounter *head;
-
     /* flag set by the wakeup thread, to inform the client threads to sync */
     uint32_t perf_flag;
 
+    /* pointer to the head of a list of counters assigned under this context */
+    SCPerfCounter *head;
+
     /* holds the total no of counters already assigned for this perf context */
     uint16_t curr_id;