summaryrefslogtreecommitdiff
path: root/include/common.h
diff options
context:
space:
mode:
authortongzongzhen <[email protected]>2024-05-28 11:47:49 +0800
committertongzongzhen <[email protected]>2024-05-28 11:47:49 +0800
commit0fdcbe595284670fb1595a5bd2363d026dd4200d (patch)
treee230875935ee6107bb74a4248db1eb9fe407f100 /include/common.h
parent1cd860ff387362537b2c92f0731ef752cb9107c8 (diff)
Improve the code
When the job is deleted directly in the CLI, clear the job in the program; fix the crash when the file is not created when merging pcapng files; the versio information contains commit ref. The subscript of the job being used is displayed in monit;
Diffstat (limited to 'include/common.h')
-rw-r--r--include/common.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/common.h b/include/common.h
index e108dda..6f75b8e 100644
--- a/include/common.h
+++ b/include/common.h
@@ -14,6 +14,12 @@
#define MR_SYMBOL_MAX 128
#endif
+#define TELEMETRY_INDEX_START 8
+#define TELEMETRY_INDEX_END DP_TRACE_JOB_NUM_MAX
+
+#define TRACE_INDEX_START 0
+#define TRACE_INDEX_END TELEMETRY_INDEX_START
+
#ifndef likely
#define likely(x) __builtin_expect(!!(x), 1)
#endif /* likely */