Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- dtorkin@ubuntu1:~/Desktop/practice$ make
- Compiling svm/svm_main.c...
- gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o svm/svm_main.o svm/svm_main.c
- Compiling svm/svm_handlers.c...
- gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o svm/svm_handlers.o svm/svm_handlers.c
- Compiling svm/svm_timers.c...
- gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o svm/svm_timers.o svm/svm_timers.c
- Compiling svm/svm_receiver.c...
- gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o svm/svm_receiver.o svm/svm_receiver.c
- Compiling svm/svm_processor.c...
- gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o svm/svm_processor.o svm/svm_processor.c
- Compiling svm/svm_sender.c...
- gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o svm/svm_sender.o svm/svm_sender.c
- Compiling protocol/message_utils.c...
- gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o protocol/message_utils.o protocol/message_utils.c
- Compiling protocol/message_builder.c...
- gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o protocol/message_builder.o protocol/message_builder.c
- protocol/message_builder.c: In function ‘create_init_channel_message’:
- protocol/message_builder.c:45:52: warning: unused parameter ‘uvm_address’ [-Wunused-parameter]
- 45 | Message create_init_channel_message(LogicalAddress uvm_address, LogicalAddress svm_address, uint16_t message_num) {
- | ~~~~~~~~~~~~~~~^~~~~~~~~~~
- Compiling io/io_common.c...
- gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o io/io_common.o io/io_common.c
- Compiling io/io_ethernet.c...
- gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o io/io_ethernet.o io/io_ethernet.c
- Compiling io/io_serial.c...
- gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o io/io_serial.o io/io_serial.c
- Compiling config/config.c...
- gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o config/config.o config/config.c
- config/config.c: In function ‘load_config’:
- config/config.c:115:84: warning: comparison is always false due to limited range of data type [-Wtype-limits]
- 115 | onfig->svm_ethernet[i].port == 0 || config->svm_ethernet[i].port > 65535) {
- | ^
- Compiling config/ini.c...
- gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o config/ini.o config/ini.c
- Compiling utils/ts_queue.c...
- gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o utils/ts_queue.o utils/ts_queue.c
- Compiling utils/ts_queue_req.c...
- gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o utils/ts_queue_req.o utils/ts_queue_req.c
- Compiling utils/ts_queued_msg_queue.c...
- 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
- Compiling utils/ts_uvm_resp_queue.c...
- 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
- Linking svm_app...
- 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
- SVM application (svm_app) built successfully.
- Compiling uvm/uvm_main.c...
- gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o uvm/uvm_main.o uvm/uvm_main.c
- uvm/uvm_main.c: In function ‘main’:
- uvm/uvm_main.c:90:26: warning: unused parameter ‘argv’ [-Wunused-parameter]
- 90 | int main(int argc, char *argv[]) {
- | ~~~~~~^~~~~~
- Compiling uvm/uvm_sender.c...
- gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o uvm/uvm_sender.o uvm/uvm_sender.c
- Compiling uvm/uvm_receiver.c...
- gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o uvm/uvm_receiver.o uvm/uvm_receiver.c
- Compiling uvm/uvm_utils.c...
- gcc -Wall -Wextra -g -Iprotocol -Iio -Isvm -Iuvm -Iconfig -Iutils -pthread -c -o uvm/uvm_utils.o uvm/uvm_utils.c
- Linking uvm_app...
- 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
- UVM application (uvm_app) built successfully.
- dtorkin@ubuntu1:~/Desktop/practice$ sudo ./svm_app
- [sudo] пароль для dtorkin:
- SVM Multi-Port Server starting...
- Message handlers initialized.
- SVM: Loading configuration...
- Configuration parsed successfully from 'config.ini'.
- Found configurations for 4 SVM instances.
- SVM: Will attempt to start 4 instances based on config.
- Thread-safe QueuedMessage queue created with capacity 400
- SVM: Listener thread 0 initiated for Port 8080 (LAK 0x08).
- SVM: Listener thread 1 initiated for Port 8081 (LAK 0x09).
- SVM: Listener thread 2 initiated for Port 8082 (LAK 0x0A).
- SVM: Listener thread 3 initiated for Port 8083 (LAK 0x0B).
- SVM: Starting common threads (Timer, Sender)...
- Ethernet: Listening on port 8081 (handle: 4)
- Listener thread started for SVM ID 1 (LAK 0x09, Port 8081, Listen FD 4)
- Listener (SVM 1): Waiting for connection on port 8081...
- SVM: All common threads started. 4 listeners active. Running...
- SVM Main: Waiting for shutdown signal...
- Ethernet: Listening on port 8083 (handle: 6)
- Listener thread started for SVM ID 3 (LAK 0x0B, Port 8083, Listen FD 6)
- Listener (SVM 3): Waiting for connection on port 8083...
- SVM Timer thread started.
- SVM Sender thread started (reads global outgoing queue).
- Ethernet: Listening on port 8080 (handle: 3)
- Listener thread started for SVM ID 0 (LAK 0x08, Port 8080, Listen FD 3)
- Listener (SVM 0): Waiting for connection on port 8080...
- Ethernet: Listening on port 8082 (handle: 5)
- Listener thread started for SVM ID 2 (LAK 0x0A, Port 8082, Listen FD 5)
- Listener (SVM 2): Waiting for connection on port 8082...
- ^C
- SVM: Received shutdown signal. Shutting down all listeners and instances...
- ethernet_accept: Accept failed: Invalid argument
- Thread-safe QueuedMessage queue shutdown initiated.
- ethernet_accept: Accept failed: Invalid argument
- ethernet_accept: Accept failed: Invalid argument
- ethernet_accept: Accept failed: Invalid argument
- Timer thread stop signaled.
- Listener (SVM 1): Accept loop interrupted or socket closed.
- Listener thread for SVM ID 1 finished.
- Ethernet Interface destroyed.
- Listener (SVM 0): Accept loop interrupted or socket closed.
- Listener thread for SVM ID 0 finished.
- Ethernet Interface destroyed.
- Listener (SVM 2): Accept loop interrupted or socket closed.
- Listener thread for SVM ID 2 finished.
- Ethernet Interface destroyed.
- SVM Main: Shutdown initiated. Waiting for threads to join...
- Timer thread stop signaled.
- Listener (SVM 3): Accept loop interrupted or socket closed.
- Sender Thread: Outgoing queue empty and shutdown signaled. Exiting.
- SVM Timer thread stopped.
- Listener thread for SVM ID 3 finished.
- Ethernet Interface destroyed.
- SVM Main: Timer thread joined.
- SVM Main: Waiting for listener threads to join...
- SVM Main: Listener thread for SVM ID 0 joined.
- SVM Main: Listener thread for SVM ID 1 joined.
- SVM Main: Listener thread for SVM ID 2 joined.
- SVM Sender thread finished.
- SVM Main: Listener thread for SVM ID 3 joined.
- SVM Main: All listener threads joined.
- SVM Main: Sender thread joined.
- SVM: Cleaning up queues...
- Thread-safe QueuedMessage queue destroyed
- SVM: Cleaning up synchronization primitives...
- SVM: Cleanup finished. Exiting.
- dtorkin@ubuntu1:~/Desktop/practice$ sudo ./uvm_app
- [sudo] пароль для dtorkin:
- UVM: Загрузка конфигурации...
- Configuration parsed successfully from 'config.ini'.
- Found configurations for 4 SVM instances.
- UVM: Found 4 SVM configurations in config file.
- Thread-safe UVM request queue created with capacity 50
- Thread-safe UVM Response queue created with capacity 200
- UVM: Connecting to SVMs...
- UVM: Attempting to connect to SVM ID 0 (Port: 8080)...
- ethernet_connect: Connection failed: Connection refused
- UVM: Attempting to connect to SVM ID 1 (Port: 8081)...
- ethernet_connect: Connection failed: Connection refused
- UVM: Attempting to connect to SVM ID 2 (Port: 8082)...
- ethernet_connect: Connection failed: Connection refused
- UVM: Attempting to connect to SVM ID 3 (Port: 8083)...
- ethernet_connect: Connection failed: Connection refused
- Thread-safe UVM request queue destroyed
- Thread-safe UVM Response queue destroyed
- UVM: Очистка завершена.
Advertisement
Add Comment
Please, Sign In to add comment