]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
threading: remove TM_FLAG_LOGAPI_TM as its not used
authorJason Ish <jason.ish@oisf.net>
Fri, 4 Oct 2024 23:02:36 +0000 (17:02 -0600)
committerJason Ish <jason.ish@oisf.net>
Fri, 4 Oct 2024 23:23:52 +0000 (17:23 -0600)
This flag is never set, remove.

src/tm-modules.h
src/util-profiling.c

index 70817fb0792dd41293ae1d17042a70d194eaccbc..f155089e2cc90393e6edd105b00201f8f7b5f8cd 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2007-2014 Open Information Security Foundation
+/* Copyright (C) 2007-2024 Open Information Security Foundation
  *
  * You can copy, redistribute or modify this Program under the terms of
  * the GNU General Public License version 2 as published by the Free
@@ -33,9 +33,8 @@
 #define TM_FLAG_DECODE_TM       0x02
 #define TM_FLAG_STREAM_TM       0x04
 #define TM_FLAG_DETECT_TM       0x08
-#define TM_FLAG_LOGAPI_TM       0x10 /**< TM is run by Log API */
-#define TM_FLAG_MANAGEMENT_TM   0x20
-#define TM_FLAG_COMMAND_TM      0x40
+#define TM_FLAG_MANAGEMENT_TM   0x10
+#define TM_FLAG_COMMAND_TM      0x20
 
 typedef TmEcode (*ThreadInitFunc)(ThreadVars *, const void *, void **);
 typedef TmEcode (*ThreadDeinitFunc)(ThreadVars *, void *);
index 56c31557285bce39a66c69db4684125b9f593a01..101b1e5ac80fe466f6e33d2306756b6f3051b11d 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2007-2023 Open Information Security Foundation
+/* Copyright (C) 2007-2024 Open Information Security Foundation
  *
  * You can copy, redistribute or modify this Program under the terms of
  * the GNU General Public License version 2 as published by the Free
@@ -434,9 +434,6 @@ void SCProfilingDumpPacketStats(void)
 #endif
     total = 0;
     for (int m = 0; m < TMM_SIZE; m++) {
-        if (tmm_modules[m].flags & TM_FLAG_LOGAPI_TM)
-            continue;
-
         for (int p = 0; p < 257; p++) {
             SCProfilePacketData *pd = &packet_profile_tmm_data4[m][p];
             total += pd->tot;
@@ -447,9 +444,6 @@ void SCProfilingDumpPacketStats(void)
     }
 
     for (int m = 0; m < TMM_SIZE; m++) {
-        if (tmm_modules[m].flags & TM_FLAG_LOGAPI_TM)
-            continue;
-
         for (int p = 0; p < 257; p++) {
             SCProfilePacketData *pd = &packet_profile_tmm_data4[m][p];
             if (pd->cnt == 0) {
@@ -472,9 +466,6 @@ void SCProfilingDumpPacketStats(void)
     }
 
     for (int m = 0; m < TMM_SIZE; m++) {
-        if (tmm_modules[m].flags & TM_FLAG_LOGAPI_TM)
-            continue;
-
         for (int p = 0; p < 257; p++) {
             SCProfilePacketData *pd = &packet_profile_tmm_data6[m][p];
             if (pd->cnt == 0) {
@@ -601,9 +592,6 @@ void SCProfilingDumpPacketStats(void)
 #endif
     total = 0;
     for (int m = 0; m < TMM_SIZE; m++) {
-        if (!(tmm_modules[m].flags & TM_FLAG_LOGAPI_TM))
-            continue;
-
         for (int p = 0; p < 257; p++) {
             SCProfilePacketData *pd = &packet_profile_tmm_data4[m][p];
             total += pd->tot;
@@ -614,9 +602,6 @@ void SCProfilingDumpPacketStats(void)
     }
 
     for (int m = 0; m < TMM_SIZE; m++) {
-        if (!(tmm_modules[m].flags & TM_FLAG_LOGAPI_TM))
-            continue;
-
         for (int p = 0; p < 257; p++) {
             SCProfilePacketData *pd = &packet_profile_tmm_data4[m][p];
             if (pd->cnt == 0) {
@@ -639,9 +624,6 @@ void SCProfilingDumpPacketStats(void)
     }
 
     for (int m = 0; m < TMM_SIZE; m++) {
-        if (!(tmm_modules[m].flags & TM_FLAG_LOGAPI_TM))
-            continue;
-
         for (int p = 0; p < 257; p++) {
             SCProfilePacketData *pd = &packet_profile_tmm_data6[m][p];
             if (pd->cnt == 0) {