Merge in SNORT/snort3 from ~OSTEPANO/snort3:perf_fix to master
Squashed commit of the following:
commit
8f69882b0b0abb840aa005ec07d28fca9c8b238b
Author: Oleksandr Stepanov <ostepano@cisco.com>
Date: Wed Jan 29 05:26:44 2025 -0500
main: move tsc clock scale init to Snort::setup
ControlMgmt::socket_init(SnortConfig::get_conf());
#endif
-#ifdef USE_TSC_CLOCK
- // Call clock_scale once to determine internal ticks to time scale
- clock_scale();
-#endif
-
SnortConfig::get_conf()->thread_config->implement_thread_affinity(
STHREAD_TYPE_MAIN, get_instance_id());
((HostTrackerModule*)ModuleManager::get_module(HOST_TRACKER_NAME))->init_data();
host_cache.print_config();
+#ifdef USE_TSC_CLOCK
+ // Call clock_scale once to determine internal ticks to time scale
+ clock_scale();
+#endif
+
TimeStart();
}