dtorkin

Untitled

Apr 21st, 2025 (edited)
21
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.08 KB | None | 0 0
  1. dtorkin@ubuntu1:~/Desktop/practice$ make
  2. Compiling svm/svm_main.c...
  3. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o svm/svm_main.o svm/svm_main.c
  4. Compiling svm/svm_handlers.c...
  5. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o svm/svm_handlers.o svm/svm_handlers.c
  6. Compiling svm/svm_timers.c...
  7. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o svm/svm_timers.o svm/svm_timers.c
  8. Compiling svm/svm_receiver.c...
  9. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o svm/svm_receiver.o svm/svm_receiver.c
  10. Compiling svm/svm_processor.c...
  11. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o svm/svm_processor.o svm/svm_processor.c
  12. Compiling svm/svm_sender.c...
  13. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o svm/svm_sender.o svm/svm_sender.c
  14. Compiling protocol/message_utils.c...
  15. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o protocol/message_utils.o protocol/message_utils.c
  16. Compiling protocol/message_builder.c...
  17. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o protocol/message_builder.o protocol/message_builder.c
  18. protocol/message_builder.c: In function ‘create_init_channel_message’:
  19. protocol/message_builder.c:45:52: warning: unused parameter ‘uvm_address’ [-Wunused-parameter]
  20. 45 | Message create_init_channel_message(LogicalAddress uvm_address, LogicalAddress svm_address, uint16_t message_num) {
  21. | ~~~~~~~~~~~~~~~^~~~~~~~~~~
  22. Compiling io/io_common.c...
  23. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o io/io_common.o io/io_common.c
  24. Compiling io/io_ethernet.c...
  25. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o io/io_ethernet.o io/io_ethernet.c
  26. Compiling io/io_serial.c...
  27. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o io/io_serial.o io/io_serial.c
  28. Compiling config/config.c...
  29. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o config/config.o config/config.c
  30. config/config.c: In function ‘load_config’:
  31. config/config.c:115:84: warning: comparison is always false due to limited range of data type [-Wtype-limits]
  32. 115 | onfig->svm_ethernet[i].port == 0 || config->svm_ethernet[i].port > 65535) {
  33. | ^
  34.  
  35. Compiling config/ini.c...
  36. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o config/ini.o config/ini.c
  37. Compiling utils/ts_queue.c...
  38. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o utils/ts_queue.o utils/ts_queue.c
  39. Compiling utils/ts_queue_req.c...
  40. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o utils/ts_queue_req.o utils/ts_queue_req.c
  41. Compiling utils/ts_queued_msg_queue.c...
  42. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o utils/ts_queued_msg_queue.o utils/ts_queued_msg_queue.c
  43. Compiling utils/ts_uvm_resp_queue.c...
  44. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o utils/ts_uvm_resp_queue.o utils/ts_uvm_resp_queue.c
  45. Linking svm_app...
  46. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread svm/svm_main.o svm/svm_handlers.o svm/svm_timers.o svm/svm_receiver.o svm/svm_processor.o svm/svm_sender.o protocol/message_utils.o protocol/message_builder.o io/io_common.o io/io_ethernet.o io/io_serial.o config/config.o config/ini.o utils/ts_queue.o utils/ts_queue_req.o utils/ts_queued_msg_queue.o utils/ts_uvm_resp_queue.o -o svm_app -pthread -lrt
  47. SVM application (svm_app) built successfully.
  48. Compiling uvm/uvm_main.c...
  49. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o uvm/uvm_main.o uvm/uvm_main.c
  50. uvm/uvm_main.c: In function ‘main’:
  51. uvm/uvm_main.c:90:26: warning: unused parameter ‘argv’ [-Wunused-parameter]
  52. 90 | int main(int argc, char *argv[]) {
  53. | ~~~~~~^~~~~~
  54. Compiling uvm/uvm_sender.c...
  55. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o uvm/uvm_sender.o uvm/uvm_sender.c
  56. Compiling uvm/uvm_receiver.c...
  57. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o uvm/uvm_receiver.o uvm/uvm_receiver.c
  58. Compiling uvm/uvm_utils.c...
  59. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o uvm/uvm_utils.o uvm/uvm_utils.c
  60. Linking uvm_app...
  61. gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread uvm/uvm_main.o uvm/uvm_sender.o uvm/uvm_receiver.o uvm/uvm_utils.o protocol/message_utils.o protocol/message_builder.o io/io_common.o io/io_ethernet.o io/io_serial.o config/config.o config/ini.o utils/ts_queue.o utils/ts_queue_req.o utils/ts_queued_msg_queue.o utils/ts_uvm_resp_queue.o -o uvm_app -pthread -lrt
  62. UVM application (uvm_app) built successfully.
  63. dtorkin@ubuntu1:~/Desktop/practice$ sudo ./svm_app
  64. [sudo] пароль для dtorkin:
  65. SVM Multi-Port Server starting...
  66. Message handlers initialized.
  67. SVM: Loading configuration...
  68. Configuration parsed successfully from 'config.ini'.
  69. Found configurations for 4 SVM instances.
  70. SVM: Will attempt to start 4 instances based on config.
  71. Thread-safe QueuedMessage queue created with capacity 400
  72. SVM: Listener thread 0 initiated for Port 8080 (LAK 0x08).
  73. SVM: Listener thread 1 initiated for Port 8081 (LAK 0x09).
  74. SVM: Listener thread 2 initiated for Port 8082 (LAK 0x0A).
  75. SVM: Listener thread 3 initiated for Port 8083 (LAK 0x0B).
  76. SVM: Starting common threads (Timer, Sender)...
  77. Ethernet: Listening on port 8081 (handle: 4)
  78. Listener thread started for SVM ID 1 (LAK 0x09, Port 8081, Listen FD 4)
  79. Listener (SVM 1): Waiting for connection on port 8081...
  80. SVM: All common threads started. 4 listeners active. Running...
  81. SVM Main: Waiting for shutdown signal...
  82. Ethernet: Listening on port 8083 (handle: 6)
  83. Listener thread started for SVM ID 3 (LAK 0x0B, Port 8083, Listen FD 6)
  84. Listener (SVM 3): Waiting for connection on port 8083...
  85. SVM Timer thread started.
  86. SVM Sender thread started (reads global outgoing queue).
  87. Ethernet: Listening on port 8080 (handle: 3)
  88. Listener thread started for SVM ID 0 (LAK 0x08, Port 8080, Listen FD 3)
  89. Listener (SVM 0): Waiting for connection on port 8080...
  90. Ethernet: Listening on port 8082 (handle: 5)
  91. Listener thread started for SVM ID 2 (LAK 0x0A, Port 8082, Listen FD 5)
  92. Listener (SVM 2): Waiting for connection on port 8082...
  93.  
  94.  
  95. ^C
  96. SVM: Received shutdown signal. Shutting down all listeners and instances...
  97. ethernet_accept: Accept failed: Invalid argument
  98. Thread-safe QueuedMessage queue shutdown initiated.
  99. ethernet_accept: Accept failed: Invalid argument
  100. ethernet_accept: Accept failed: Invalid argument
  101. ethernet_accept: Accept failed: Invalid argument
  102. Timer thread stop signaled.
  103. Listener (SVM 1): Accept loop interrupted or socket closed.
  104. Listener thread for SVM ID 1 finished.
  105. Ethernet Interface destroyed.
  106. Listener (SVM 0): Accept loop interrupted or socket closed.
  107. Listener thread for SVM ID 0 finished.
  108. Ethernet Interface destroyed.
  109. Listener (SVM 2): Accept loop interrupted or socket closed.
  110. Listener thread for SVM ID 2 finished.
  111. Ethernet Interface destroyed.
  112. SVM Main: Shutdown initiated. Waiting for threads to join...
  113. Timer thread stop signaled.
  114. Listener (SVM 3): Accept loop interrupted or socket closed.
  115. Sender Thread: Outgoing queue empty and shutdown signaled. Exiting.
  116. SVM Timer thread stopped.
  117. Listener thread for SVM ID 3 finished.
  118. Ethernet Interface destroyed.
  119. SVM Main: Timer thread joined.
  120. SVM Main: Waiting for listener threads to join...
  121. SVM Main: Listener thread for SVM ID 0 joined.
  122. SVM Main: Listener thread for SVM ID 1 joined.
  123. SVM Main: Listener thread for SVM ID 2 joined.
  124. SVM Sender thread finished.
  125. SVM Main: Listener thread for SVM ID 3 joined.
  126. SVM Main: All listener threads joined.
  127. SVM Main: Sender thread joined.
  128. SVM: Cleaning up queues...
  129. Thread-safe QueuedMessage queue destroyed
  130. SVM: Cleaning up synchronization primitives...
  131. SVM: Cleanup finished. Exiting.
  132.  
  133.  
  134. dtorkin@ubuntu1:~/Desktop/practice$ sudo ./uvm_app
  135. [sudo] пароль для dtorkin:
  136. UVM: Загрузка конфигурации...
  137. Configuration parsed successfully from 'config.ini'.
  138. Found configurations for 4 SVM instances.
  139. UVM: Found 4 SVM configurations in config file.
  140. Thread-safe UVM request queue created with capacity 50
  141. Thread-safe UVM Response queue created with capacity 200
  142. UVM: Connecting to SVMs...
  143. UVM: Attempting to connect to SVM ID 0 (Port: 8080)...
  144. ethernet_connect: Connection failed: Connection refused
  145. UVM: Attempting to connect to SVM ID 1 (Port: 8081)...
  146. ethernet_connect: Connection failed: Connection refused
  147. UVM: Attempting to connect to SVM ID 2 (Port: 8082)...
  148. ethernet_connect: Connection failed: Connection refused
  149. UVM: Attempting to connect to SVM ID 3 (Port: 8083)...
  150. ethernet_connect: Connection failed: Connection refused
  151. Thread-safe UVM request queue destroyed
  152. Thread-safe UVM Response queue destroyed
  153. UVM: Очистка завершена.
Advertisement
Add Comment
Please, Sign In to add comment