| 1 | // SPDX-License-Identifier: BSD-2-Clausecxx . . $ `<file>/src/reference.c`/ |
| 2 | /* |
| 3 | * Copyright (C) 2020-2025 Linutronix GmbH |
| 4 | * Author Kurt Kanzenbach <[email protected]> |
| 5 | */ |
| 6 | |
| 7 | #include <getopt.h> |
| 8 | #include <signal.h> |
| 9 | #include <stdio.h> |
| 10 | #include <stdlib.h> |
| 11 | |
| 12 | #include <sys/mman.h> |
| 13 | |
| 14 | #include "app_config.h"cxx . . $ `<file>/build/app_config.h`/ |
| 15 | #include "config.h"cxx . . $ `<file>/src/config.h`/ |
| 16 | #include "dcp_thread.h"cxx . . $ `<file>/src/dcp_thread.h`/ |
| 17 | #include "hist.h"cxx . . $ `<file>/src/hist.h`/ |
| 18 | #include "layer2_thread.h"cxx . . $ `<file>/src/layer2_thread.h`/ |
| 19 | #include "lldp_thread.h"cxx . . $ `<file>/src/lldp_thread.h`/ |
| 20 | #include "log.h"cxx . . $ `<file>/src/log.h`/ |
| 21 | #include "log_json.h"cxx . . $ `<file>/src/log_json.h`/ |
| 22 | #include "log_mqtt.h"cxx . . $ `<file>/src/log_mqtt.h`/ |
| 23 | #include "print.h"cxx . . $ `<file>/src/print.h`/ |
| 24 | #include "rta_thread.h"cxx . . $ `<file>/src/rta_thread.h`/ |
| 25 | #include "rtc_thread.h"cxx . . $ `<file>/src/rtc_thread.h`/ |
| 26 | #include "stat.h"cxx . . $ `<file>/src/stat.h`/ |
| 27 | #include "thread.h"cxx . . $ `<file>/src/thread.h`/ |
| 28 | #include "tsn_thread.h"cxx . . $ `<file>/src/tsn_thread.h`/ |
| 29 | #include "udp_thread.h"cxx . . $ `<file>/src/udp_thread.h`/ |
| 30 | #include "utils.h"cxx . . $ `<file>/src/utils.h`/ |
| 31 | |
| 32 | static struct optioncxx . . $ option# long_optionscxx . . $ long_options.[] = { |
| 33 | {"config", optional_argumentcxx . . $ `<external>/1746263805473775960/getopt_ext.h:64:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, 'c'}, |
| 34 | {"help", no_argumentcxx . . $ `<external>/1746263805473775960/getopt_ext.h:62:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, 'h'}, |
| 35 | {"version", no_argumentcxx . . $ `<external>/1746263805473775960/getopt_ext.h:62:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, 'V'}, |
| 36 | {NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!}, |
| 37 | }; |
| 38 | |
| 39 | static struct log_mqtt_thread_contextcxx . . $ log_mqtt_thread_context# *log_mqtt_threadcxx . . $ log_mqtt_thread.; |
| 40 | static struct log_json_thread_contextcxx . . $ log_json_thread_context# *log_json_threadcxx . . $ log_json_thread.; |
| 41 | static struct log_thread_contextcxx . . $ log_thread_context# *log_threadcxx . . $ log_thread.; |
| 42 | static struct thread_contextcxx . . $ thread_context# *g2_threadscxx . . $ g2_threads.; |
| 43 | static struct thread_contextcxx . . $ thread_context# *threadscxx . . $ threads.; |
| 44 | |
| 45 | static void term_handlercxx . . $ term_handler(d4f767463ce0a6b3).(int sig) |
| 46 | { |
| 47 | int i; |
| 48 | |
| 49 | printfcxx . . $ printf(581fddd72a8db8fc).("Stopping all application threads...\n"); |
| 50 | |
| 51 | print_stopcxx . . $ print_stop. = 1; |
| 52 | |
| 53 | if (log_mqtt_threadcxx . . $ log_mqtt_thread.) |
| 54 | log_mqtt_threadcxx . . $ log_mqtt_thread.->stopcxx . . $ log_mqtt_thread_context#stop. = 1; |
| 55 | |
| 56 | if (log_json_threadcxx . . $ log_json_thread.) |
| 57 | log_json_threadcxx . . $ log_json_thread.->stopcxx . . $ log_json_thread_context#stop. = 1; |
| 58 | |
| 59 | if (log_threadcxx . . $ log_thread.) |
| 60 | log_threadcxx . . $ log_thread.->stopcxx . . $ log_thread_context#stop. = 1; |
| 61 | |
| 62 | if (g2_threadscxx . . $ g2_threads.) |
| 63 | g2_threadscxx . . $ g2_threads.->stopcxx . . $ thread_context#stop. = 1; |
| 64 | |
| 65 | if (threadscxx . . $ threads.) |
| 66 | for (i = 0; i < NUM_PN_THREAD_TYPEScxx . . $ NUM_PN_THREAD_TYPES.; i++) |
| 67 | threadscxx . . $ threads.[i].stopcxx . . $ thread_context#stop. = 1; |
| 68 | } |
| 69 | |
| 70 | static void reset_stats_handlercxx . . $ reset_stats_handler(d4f767463ce0a6b3).(int sig) |
| 71 | { |
| 72 | reset_statscxx . . $ reset_stats. = 1; |
| 73 | } |
| 74 | |
| 75 | static void setup_signalscxx . . $ setup_signals(49f6e7a06ebc5aa8).(void) |
| 76 | { |
| 77 | struct sigactioncxx . . $ sigaction# sa1, sa2; |
| 78 | |
| 79 | sigemptysetcxx . . $ sigemptyset(f9c066a8ff75ee9d).(&sa1.sa_maskcxx . . $ sigaction#sa_mask.); |
| 80 | sa1.sa_handlercxx . . $ `<external>/16635209305659446502/sigaction.h:39:10`! = term_handlercxx . . $ term_handler(d4f767463ce0a6b3).; |
| 81 | sa1.sa_flagscxx . . $ sigaction#sa_flags. = 0; |
| 82 | |
| 83 | sigemptysetcxx . . $ sigemptyset(f9c066a8ff75ee9d).(&sa2.sa_maskcxx . . $ sigaction#sa_mask.); |
| 84 | sa2.sa_handlercxx . . $ `<external>/16635209305659446502/sigaction.h:39:10`! = reset_stats_handlercxx . . $ reset_stats_handler(d4f767463ce0a6b3).; |
| 85 | sa2.sa_flagscxx . . $ sigaction#sa_flags. = 0; |
| 86 | |
| 87 | if (sigactioncxx . . $ sigaction(53aba09fe16b06c7).(SIGTERMcxx . . $ `<external>/11773118241360591791/signum-generic.h:53:9`!, &sa1, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)) |
| 88 | perrorcxx . . $ perror(85c52e162fed56f9).("sigaction() failed"); |
| 89 | if (sigactioncxx . . $ sigaction(53aba09fe16b06c7).(SIGINTcxx . . $ `<external>/11773118241360591791/signum-generic.h:48:9`!, &sa1, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)) |
| 90 | perrorcxx . . $ perror(85c52e162fed56f9).("sigaction() failed"); |
| 91 | if (sigactioncxx . . $ sigaction(53aba09fe16b06c7).(SIGUSR1cxx . . $ `<external>/1457673850468744829/signum-arch.h:49:9`!, &sa2, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)) |
| 92 | perrorcxx . . $ perror(85c52e162fed56f9).("sigaction() failed"); |
| 93 | } |
| 94 | |
| 95 | static void print_usage_and_diecxx . . $ print_usage_and_die(49f6e7a06ebc5aa8).(void) |
| 96 | { |
| 97 | fprintfcxx . . $ fprintf(bc216f8e5b1ebeac).(stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "usage: reference [options]\n"); |
| 98 | fprintfcxx . . $ fprintf(bc216f8e5b1ebeac).(stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, " options:\n"); |
| 99 | fprintfcxx . . $ fprintf(bc216f8e5b1ebeac).(stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, " -h, --help: Print this help text\n"); |
| 100 | fprintfcxx . . $ fprintf(bc216f8e5b1ebeac).(stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, " -V, --version: Print version\n"); |
| 101 | fprintfcxx . . $ fprintf(bc216f8e5b1ebeac).(stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, " -c, --config: Path to config file\n"); |
| 102 | |
| 103 | exitcxx . . $ exit(3ca292c338df9bb3).(EXIT_SUCCESScxx . . $ `<external>/10696550936717951914/stdlib.h:93:9`!); |
| 104 | } |
| 105 | |
| 106 | static void print_version_and_diecxx . . $ print_version_and_die(49f6e7a06ebc5aa8).(void) |
| 107 | { |
| 108 | printfcxx . . $ printf(581fddd72a8db8fc).("reference: version \"%s\"\n", VERSIONcxx . . $ `build/app_config.h:10:9`!); |
| 109 | exitcxx . . $ exit(3ca292c338df9bb3).(EXIT_SUCCESScxx . . $ `<external>/10696550936717951914/stdlib.h:93:9`!); |
| 110 | } |
| 111 | |
| 112 | int maincxx . . $ main(afcd3168fc1188a4).(int argc, char *argv[]) |
| 113 | { |
| 114 | const char *config_file = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 115 | int c, ret; |
| 116 | |
| 117 | while ((c = getopt_longcxx . . $ getopt_long(41f665c090816971).(argc, argv, "c:hV", long_optionscxx . . $ long_options., NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)) != -1) { |
| 118 | switch (c) { |
| 119 | case 'V': |
| 120 | print_version_and_diecxx . . $ print_version_and_die(49f6e7a06ebc5aa8).(); |
| 121 | break; |
| 122 | case 'c': |
| 123 | config_file = optargcxx . . $ optarg.; |
| 124 | break; |
| 125 | case 'h': |
| 126 | default: |
| 127 | print_usage_and_diecxx . . $ print_usage_and_die(49f6e7a06ebc5aa8).(); |
| 128 | } |
| 129 | } |
| 130 | |
| 131 | ret = config_set_defaultscxx . . $ config_set_defaults(73da94e76e6bd037).(falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!); |
| 132 | if (ret) { |
| 133 | fprintfcxx . . $ fprintf(bc216f8e5b1ebeac).(stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Failed to set default config values!\n"); |
| 134 | exitcxx . . $ exit(3ca292c338df9bb3).(EXIT_FAILUREcxx . . $ `<external>/10696550936717951914/stdlib.h:92:9`!); |
| 135 | } |
| 136 | |
| 137 | if (!config_file) { |
| 138 | fprintfcxx . . $ fprintf(bc216f8e5b1ebeac).(stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Specifying an configuration file is mandatory. See tests/ " |
| 139 | "directory for examples!\n"); |
| 140 | exitcxx . . $ exit(3ca292c338df9bb3).(EXIT_FAILUREcxx . . $ `<external>/10696550936717951914/stdlib.h:92:9`!); |
| 141 | } |
| 142 | |
| 143 | ret = config_read_from_filecxx . . $ config_read_from_file(5c4306d8553b3696).(config_file); |
| 144 | if (ret) { |
| 145 | fprintfcxx . . $ fprintf(bc216f8e5b1ebeac).(stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Failed to parse configuration file!\n"); |
| 146 | exitcxx . . $ exit(3ca292c338df9bb3).(EXIT_FAILUREcxx . . $ `<external>/10696550936717951914/stdlib.h:92:9`!); |
| 147 | } |
| 148 | |
| 149 | config_print_valuescxx . . $ config_print_values(49f6e7a06ebc5aa8).(); |
| 150 | |
| 151 | if (!config_sanity_checkcxx . . $ config_sanity_check(c9857a73d68e59ba).()) { |
| 152 | fprintfcxx . . $ fprintf(bc216f8e5b1ebeac).(stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Configuration failed sanity checks!\n"); |
| 153 | exitcxx . . $ exit(3ca292c338df9bb3).(EXIT_FAILUREcxx . . $ `<external>/10696550936717951914/stdlib.h:92:9`!); |
| 154 | } |
| 155 | |
| 156 | if (mlockallcxx . . $ mlockall(7864480464b09eea).(MCL_CURRENTcxx . . $ `<external>/17226767460805440860/mman-linux.h:131:10`! | MCL_FUTUREcxx . . $ `<external>/17226767460805440860/mman-linux.h:132:10`!)) { |
| 157 | perrorcxx . . $ perror(85c52e162fed56f9).("mlockall() failed"); |
| 158 | exitcxx . . $ exit(3ca292c338df9bb3).(EXIT_FAILUREcxx . . $ `<external>/10696550936717951914/stdlib.h:92:9`!); |
| 159 | } |
| 160 | |
| 161 | configure_cpu_latencycxx . . $ configure_cpu_latency(49f6e7a06ebc5aa8).(); |
| 162 | |
| 163 | setup_signalscxx . . $ setup_signals(49f6e7a06ebc5aa8).(); |
| 164 | |
| 165 | ret = log_initcxx . . $ log_init(b126dc7c1de90089).(); |
| 166 | if (ret) { |
| 167 | fprintfcxx . . $ fprintf(bc216f8e5b1ebeac).(stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Failed to initialize logging!\n"); |
| 168 | exitcxx . . $ exit(3ca292c338df9bb3).(EXIT_FAILUREcxx . . $ `<external>/10696550936717951914/stdlib.h:92:9`!); |
| 169 | } |
| 170 | |
| 171 | ret = histogram_initcxx . . $ histogram_init(b126dc7c1de90089).(); |
| 172 | if (ret) { |
| 173 | fprintfcxx . . $ fprintf(bc216f8e5b1ebeac).(stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Failed to initialize histogram code!\n"); |
| 174 | exitcxx . . $ exit(3ca292c338df9bb3).(EXIT_FAILUREcxx . . $ `<external>/10696550936717951914/stdlib.h:92:9`!); |
| 175 | } |
| 176 | |
| 177 | ret = stat_initcxx . . $ stat_init(227e9c8ece8b273d).(LOG_REFERENCEcxx . . $ LOG_REFERENCE.); |
| 178 | if (ret) { |
| 179 | fprintfcxx . . $ fprintf(bc216f8e5b1ebeac).(stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Failed to initialize statistics!\n"); |
| 180 | exitcxx . . $ exit(3ca292c338df9bb3).(EXIT_FAILUREcxx . . $ `<external>/10696550936717951914/stdlib.h:92:9`!); |
| 181 | } |
| 182 | |
| 183 | log_threadcxx . . $ log_thread. = log_thread_createcxx . . $ log_thread_create(3ed95045a9d7f639).(); |
| 184 | if (!log_threadcxx . . $ log_thread.) { |
| 185 | fprintfcxx . . $ fprintf(bc216f8e5b1ebeac).(stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Failed to create and start Log Thread!\n"); |
| 186 | exitcxx . . $ exit(3ca292c338df9bb3).(EXIT_FAILUREcxx . . $ `<external>/10696550936717951914/stdlib.h:92:9`!); |
| 187 | } |
| 188 | |
| 189 | log_mqtt_threadcxx . . $ log_mqtt_thread. = log_mqtt_thread_createcxx . . $ log_mqtt_thread_create(d1742bcb97fb8079).(); |
| 190 | if (!log_mqtt_threadcxx . . $ log_mqtt_thread. && app_configcxx . . $ app_config..log_mqttcxx . . $ application_config#log_mqtt.) { |
| 191 | fprintfcxx . . $ fprintf(bc216f8e5b1ebeac).(stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Failed to create and start Log via MQTT Thread!\n"); |
| 192 | exitcxx . . $ exit(3ca292c338df9bb3).(EXIT_FAILUREcxx . . $ `<external>/10696550936717951914/stdlib.h:92:9`!); |
| 193 | } |
| 194 | |
| 195 | log_json_threadcxx . . $ log_json_thread. = log_json_thread_createcxx . . $ log_json_thread_create(28a00b00e83b43e2).(); |
| 196 | if (!log_json_threadcxx . . $ log_json_thread. && app_configcxx . . $ app_config..log_jsoncxx . . $ application_config#log_json.) { |
| 197 | fprintfcxx . . $ fprintf(bc216f8e5b1ebeac).(stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Failed to create and start Log via JSON Thread!\n"); |
| 198 | exitcxx . . $ exit(3ca292c338df9bb3).(EXIT_FAILUREcxx . . $ `<external>/10696550936717951914/stdlib.h:92:9`!); |
| 199 | } |
| 200 | |
| 201 | g2_threadscxx . . $ g2_threads. = generic_l2_threads_createcxx . . $ generic_l2_threads_create(cd031c27c2e2a5f2).(); |
| 202 | if (!g2_threadscxx . . $ g2_threads.) { |
| 203 | fprintfcxx . . $ fprintf(bc216f8e5b1ebeac).(stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Failed to create and start Generic L2 Threads!\n"); |
| 204 | exitcxx . . $ exit(3ca292c338df9bb3).(EXIT_FAILUREcxx . . $ `<external>/10696550936717951914/stdlib.h:92:9`!); |
| 205 | } |
| 206 | |
| 207 | threadscxx . . $ threads. = calloccxx . . $ calloc(63a7bf2941bfcd7a).(NUM_PN_THREAD_TYPEScxx . . $ NUM_PN_THREAD_TYPES., sizeof(struct thread_contextcxx . . $ thread_context#)); |
| 208 | if (!threadscxx . . $ threads.) { |
| 209 | fprintfcxx . . $ fprintf(bc216f8e5b1ebeac).(stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Failed to allocate PN threads!\n"); |
| 210 | exitcxx . . $ exit(3ca292c338df9bb3).(EXIT_FAILUREcxx . . $ `<external>/10696550936717951914/stdlib.h:92:9`!); |
| 211 | } |
| 212 | |
| 213 | if (link_pn_threadscxx . . $ link_pn_threads(8542e1c024f3ff56).(threadscxx . . $ threads.)) { |
| 214 | fprintfcxx . . $ fprintf(bc216f8e5b1ebeac).(stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Failed to determine PN traffic classes order!\n"); |
| 215 | exitcxx . . $ exit(3ca292c338df9bb3).(EXIT_FAILUREcxx . . $ `<external>/10696550936717951914/stdlib.h:92:9`!); |
| 216 | } |
| 217 | |
| 218 | ret = udp_low_threads_createcxx . . $ udp_low_threads_create(8542e1c024f3ff56).(&threadscxx . . $ threads.[UDP_LOW_THREADcxx . . $ UDP_LOW_THREAD.]); |
| 219 | if (ret) { |
| 220 | fprintfcxx . . $ fprintf(bc216f8e5b1ebeac).(stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Failed to create and start UDP Low Threads!\n"); |
| 221 | exitcxx . . $ exit(3ca292c338df9bb3).(EXIT_FAILUREcxx . . $ `<external>/10696550936717951914/stdlib.h:92:9`!); |
| 222 | } |
| 223 | |
| 224 | ret = udp_high_threads_createcxx . . $ udp_high_threads_create(8542e1c024f3ff56).(&threadscxx . . $ threads.[UDP_HIGH_THREADcxx . . $ UDP_HIGH_THREAD.]); |
| 225 | if (ret) { |
| 226 | fprintfcxx . . $ fprintf(bc216f8e5b1ebeac).(stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Failed to create and start UDP High Threads!\n"); |
| 227 | exitcxx . . $ exit(3ca292c338df9bb3).(EXIT_FAILUREcxx . . $ `<external>/10696550936717951914/stdlib.h:92:9`!); |
| 228 | } |
| 229 | |
| 230 | ret = lldp_threads_createcxx . . $ lldp_threads_create(8542e1c024f3ff56).(&threadscxx . . $ threads.[LLDP_THREADcxx . . $ LLDP_THREAD.]); |
| 231 | if (ret) { |
| 232 | fprintfcxx . . $ fprintf(bc216f8e5b1ebeac).(stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Failed to create and start LLDP Threads!\n"); |
| 233 | exitcxx . . $ exit(3ca292c338df9bb3).(EXIT_FAILUREcxx . . $ `<external>/10696550936717951914/stdlib.h:92:9`!); |
| 234 | } |
| 235 | |
| 236 | ret = dcp_threads_createcxx . . $ dcp_threads_create(8542e1c024f3ff56).(&threadscxx . . $ threads.[DCP_THREADcxx . . $ DCP_THREAD.]); |
| 237 | if (ret) { |
| 238 | fprintfcxx . . $ fprintf(bc216f8e5b1ebeac).(stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Failed to create and start DCP Threads!\n"); |
| 239 | exitcxx . . $ exit(3ca292c338df9bb3).(EXIT_FAILUREcxx . . $ `<external>/10696550936717951914/stdlib.h:92:9`!); |
| 240 | } |
| 241 | |
| 242 | ret = rta_threads_createcxx . . $ rta_threads_create(8542e1c024f3ff56).(&threadscxx . . $ threads.[RTA_THREADcxx . . $ RTA_THREAD.]); |
| 243 | if (ret) { |
| 244 | fprintfcxx . . $ fprintf(bc216f8e5b1ebeac).(stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Failed to create and start RTA Threads!\n"); |
| 245 | exitcxx . . $ exit(3ca292c338df9bb3).(EXIT_FAILUREcxx . . $ `<external>/10696550936717951914/stdlib.h:92:9`!); |
| 246 | } |
| 247 | |
| 248 | ret = rtc_threads_createcxx . . $ rtc_threads_create(8542e1c024f3ff56).(&threadscxx . . $ threads.[RTC_THREADcxx . . $ RTC_THREAD.]); |
| 249 | if (ret) { |
| 250 | fprintfcxx . . $ fprintf(bc216f8e5b1ebeac).(stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Failed to create and start RTC Threads!\n"); |
| 251 | exitcxx . . $ exit(3ca292c338df9bb3).(EXIT_FAILUREcxx . . $ `<external>/10696550936717951914/stdlib.h:92:9`!); |
| 252 | } |
| 253 | |
| 254 | ret = tsn_low_threads_createcxx . . $ tsn_low_threads_create(8542e1c024f3ff56).(&threadscxx . . $ threads.[TSN_LOW_THREADcxx . . $ TSN_LOW_THREAD.]); |
| 255 | if (ret) { |
| 256 | fprintfcxx . . $ fprintf(bc216f8e5b1ebeac).(stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Failed to create and start TSN Low Threads!\n"); |
| 257 | exitcxx . . $ exit(3ca292c338df9bb3).(EXIT_FAILUREcxx . . $ `<external>/10696550936717951914/stdlib.h:92:9`!); |
| 258 | } |
| 259 | |
| 260 | ret = tsn_high_threads_createcxx . . $ tsn_high_threads_create(8542e1c024f3ff56).(&threadscxx . . $ threads.[TSN_HIGH_THREADcxx . . $ TSN_HIGH_THREAD.]); |
| 261 | if (ret) { |
| 262 | fprintfcxx . . $ fprintf(bc216f8e5b1ebeac).(stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Failed to create and start TSN High Threads!\n"); |
| 263 | exitcxx . . $ exit(3ca292c338df9bb3).(EXIT_FAILUREcxx . . $ `<external>/10696550936717951914/stdlib.h:92:9`!); |
| 264 | } |
| 265 | |
| 266 | print_statscxx . . $ print_stats(49f6e7a06ebc5aa8).(); |
| 267 | |
| 268 | tsn_high_threads_wait_for_finishcxx . . $ tsn_high_threads_wait_for_finish(f7c2ab51214b7176).(&threadscxx . . $ threads.[TSN_HIGH_THREADcxx . . $ TSN_HIGH_THREAD.]); |
| 269 | tsn_low_threads_wait_for_finishcxx . . $ tsn_low_threads_wait_for_finish(f7c2ab51214b7176).(&threadscxx . . $ threads.[TSN_LOW_THREADcxx . . $ TSN_LOW_THREAD.]); |
| 270 | rtc_threads_wait_for_finishcxx . . $ rtc_threads_wait_for_finish(f7c2ab51214b7176).(&threadscxx . . $ threads.[RTC_THREADcxx . . $ RTC_THREAD.]); |
| 271 | rta_threads_wait_for_finishcxx . . $ rta_threads_wait_for_finish(f7c2ab51214b7176).(&threadscxx . . $ threads.[RTA_THREADcxx . . $ RTA_THREAD.]); |
| 272 | dcp_threads_wait_for_finishcxx . . $ dcp_threads_wait_for_finish(f7c2ab51214b7176).(&threadscxx . . $ threads.[DCP_THREADcxx . . $ DCP_THREAD.]); |
| 273 | lldp_threads_wait_for_finishcxx . . $ lldp_threads_wait_for_finish(f7c2ab51214b7176).(&threadscxx . . $ threads.[LLDP_THREADcxx . . $ LLDP_THREAD.]); |
| 274 | udp_high_threads_wait_for_finishcxx . . $ udp_high_threads_wait_for_finish(f7c2ab51214b7176).(&threadscxx . . $ threads.[UDP_HIGH_THREADcxx . . $ UDP_HIGH_THREAD.]); |
| 275 | udp_low_threads_wait_for_finishcxx . . $ udp_low_threads_wait_for_finish(f7c2ab51214b7176).(&threadscxx . . $ threads.[UDP_LOW_THREADcxx . . $ UDP_LOW_THREAD.]); |
| 276 | generic_l2_threads_wait_for_finishcxx . . $ generic_l2_threads_wait_for_finish(f7c2ab51214b7176).(g2_threadscxx . . $ g2_threads.); |
| 277 | log_mqtt_thread_wait_for_finishcxx . . $ log_mqtt_thread_wait_for_finish(a4813b9bbab39343).(log_mqtt_threadcxx . . $ log_mqtt_thread.); |
| 278 | log_json_thread_wait_for_finishcxx . . $ log_json_thread_wait_for_finish(804bb534ff7495b0).(log_json_threadcxx . . $ log_json_thread.); |
| 279 | log_thread_wait_for_finishcxx . . $ log_thread_wait_for_finish(5f50a2fc789db767).(log_threadcxx . . $ log_thread.); |
| 280 | |
| 281 | histogram_writecxx . . $ histogram_write(b126dc7c1de90089).(); |
| 282 | |
| 283 | tsn_high_threads_freecxx . . $ tsn_high_threads_free(f7c2ab51214b7176).(&threadscxx . . $ threads.[TSN_HIGH_THREADcxx . . $ TSN_HIGH_THREAD.]); |
| 284 | tsn_low_threads_freecxx . . $ tsn_low_threads_free(f7c2ab51214b7176).(&threadscxx . . $ threads.[TSN_LOW_THREADcxx . . $ TSN_LOW_THREAD.]); |
| 285 | rtc_threads_freecxx . . $ rtc_threads_free(f7c2ab51214b7176).(&threadscxx . . $ threads.[RTC_THREADcxx . . $ RTC_THREAD.]); |
| 286 | rta_threads_freecxx . . $ rta_threads_free(f7c2ab51214b7176).(&threadscxx . . $ threads.[RTA_THREADcxx . . $ RTA_THREAD.]); |
| 287 | dcp_threads_freecxx . . $ dcp_threads_free(f7c2ab51214b7176).(&threadscxx . . $ threads.[DCP_THREADcxx . . $ DCP_THREAD.]); |
| 288 | lldp_threads_freecxx . . $ lldp_threads_free(f7c2ab51214b7176).(&threadscxx . . $ threads.[LLDP_THREADcxx . . $ LLDP_THREAD.]); |
| 289 | udp_high_threads_freecxx . . $ udp_high_threads_free(f7c2ab51214b7176).(&threadscxx . . $ threads.[UDP_HIGH_THREADcxx . . $ UDP_HIGH_THREAD.]); |
| 290 | udp_low_threads_freecxx . . $ udp_low_threads_free(f7c2ab51214b7176).(&threadscxx . . $ threads.[UDP_LOW_THREADcxx . . $ UDP_LOW_THREAD.]); |
| 291 | generic_l2_threads_freecxx . . $ generic_l2_threads_free(f7c2ab51214b7176).(g2_threadscxx . . $ g2_threads.); |
| 292 | log_mqtt_thread_freecxx . . $ log_mqtt_thread_free(a4813b9bbab39343).(log_mqtt_threadcxx . . $ log_mqtt_thread.); |
| 293 | log_json_thread_freecxx . . $ log_json_thread_free(804bb534ff7495b0).(log_json_threadcxx . . $ log_json_thread.); |
| 294 | log_thread_freecxx . . $ log_thread_free(5f50a2fc789db767).(log_threadcxx . . $ log_thread.); |
| 295 | |
| 296 | histogram_freecxx . . $ histogram_free(49f6e7a06ebc5aa8).(); |
| 297 | stat_freecxx . . $ stat_free(49f6e7a06ebc5aa8).(); |
| 298 | log_freecxx . . $ log_free(49f6e7a06ebc5aa8).(); |
| 299 | config_freecxx . . $ config_free(49f6e7a06ebc5aa8).(); |
| 300 | freecxx . . $ free(5d22bdacc48458e8).(threadscxx . . $ threads.); |
| 301 | |
| 302 | restore_cpu_latencycxx . . $ restore_cpu_latency(49f6e7a06ebc5aa8).(); |
| 303 | |
| 304 | return EXIT_SUCCESScxx . . $ `<external>/10696550936717951914/stdlib.h:93:9`!; |
| 305 | } |