@@ -173,13 +173,13 @@ nixlLibfabricBackendH::nixlLibfabricBackendH(nixl_xfer_op_t op, const std::strin
173173 // Initialize BinaryNotification
174174 binary_notif.clear ();
175175
176- NIXL_DEBUG << " constructor called, this : " << this
176+ NIXL_DEBUG << " handle constructor called, address : " << this
177177 << " total_requests_used=" << submitted_requests_.load ()
178178 << " BinaryNotification initialized" ;
179179}
180180
181181nixlLibfabricBackendH::~nixlLibfabricBackendH () {
182- NIXL_DEBUG << " destructor called, this : " << this ;
182+ NIXL_DEBUG << " handle destructor called, address : " << this ;
183183}
184184
185185// Multi-request completion tracking methods
@@ -425,7 +425,7 @@ nixlLibfabricEngine::getConnInfo(std::string &str) const {
425425
426426 NIXL_DEBUG << " Rail Manager serialized connection info for " << rail_manager.getNumDataRails ()
427427 << " rails, " << rail_manager.getNumControlRails () << " control rails, "
428- << " total size: " << str.length ();
428+ << " total size= " << str.length ();
429429
430430 return NIXL_SUCCESS;
431431}
@@ -436,7 +436,7 @@ nixlLibfabricEngine::loadRemoteConnInfo(const std::string &remote_agent,
436436 std::lock_guard<std::mutex> lock (connection_state_mutex_);
437437
438438 NIXL_DEBUG << " Loading remote info for agent: " << remote_agent
439- << " , info length: " << remote_conn_info.length ()
439+ << " , info length= " << remote_conn_info.length ()
440440 << " , info (hex): " << LibfabricUtils::hexdump (remote_conn_info.data ());
441441
442442 if (remote_conn_info.empty ()) {
@@ -475,13 +475,13 @@ nixlLibfabricEngine::connect(const std::string &remote_agent) {
475475 std::lock_guard<std::mutex> lock (connection_state_mutex_);
476476
477477 NIXL_DEBUG << " Connecting to agent: " << remote_agent
478- << " , connections_ size: " << connections_.size ();
478+ << " , connections_ size= " << connections_.size ();
479479
480480 // Check if connection is already established
481481 auto it = connections_.find (remote_agent);
482482 if (it != connections_.end () && it->second ->overall_state_ == ConnectionState::CONNECTED) {
483483 NIXL_DEBUG << " Connection already established for " << remote_agent
484- << " , fi_addr: " << it->second ->rail_remote_addr_list_ [0 ][0 ];
484+ << " , fi_addr= " << it->second ->rail_remote_addr_list_ [0 ][0 ];
485485 return NIXL_SUCCESS;
486486 }
487487
@@ -519,7 +519,7 @@ nixlLibfabricEngine::disconnect(const std::string &remote_agent) {
519519 // Connection exists - check if already disconnected
520520 if (it->second ->overall_state_ == ConnectionState::DISCONNECTED) {
521521 NIXL_DEBUG << " Connection already established for " << remote_agent
522- << " , fi_addr: " << it->second ->rail_remote_addr_list_ [0 ][0 ];
522+ << " , fi_addr= " << it->second ->rail_remote_addr_list_ [0 ][0 ];
523523 return NIXL_SUCCESS;
524524 }
525525 // TODO: Implement disconnect logic to cleanup the AV Address Entries from both local and remote
@@ -997,7 +997,7 @@ nixlLibfabricEngine::postXfer(const nixl_xfer_op_t &operation,
997997 backend_handle->binary_notif .expected_completions =
998998 0 ; // Will be incremented during transfer submission
999999
1000- NIXL_DEBUG << " Using pre-allocated BinaryNotification with XFER_ID: "
1000+ NIXL_DEBUG << " Using pre-allocated BinaryNotification with XFER_ID= "
10011001 << backend_handle->binary_notif .xfer_id ;
10021002
10031003 nixlLibfabricReq::OpType op_type;
@@ -1032,8 +1032,8 @@ nixlLibfabricEngine::postXfer(const nixl_xfer_op_t &operation,
10321032 int gpu_id = local[desc_idx].devId ;
10331033
10341034 NIXL_DEBUG << " Processing descriptor " << desc_idx << " GPU " << gpu_id
1035- << " local_addr: " << transfer_addr << " size: " << transfer_size
1036- << " remote_addr: " << (void *)remote[desc_idx].addr ;
1035+ << " local_addr: " << transfer_addr << " size= " << transfer_size
1036+ << " remote_addr= " << (void *)remote[desc_idx].addr ;
10371037
10381038 NIXL_DEBUG << " DEBUG: remote_agent='" << remote_agent << " ' localAgent='" << localAgent
10391039 << " '" ;
@@ -1091,7 +1091,7 @@ nixlLibfabricEngine::postXfer(const nixl_xfer_op_t &operation,
10911091 NIXL_ERROR << " Failed to send notification" ;
10921092 return notif_status;
10931093 }
1094- NIXL_DEBUG << " Notification sent immediately with xfer_id: "
1094+ NIXL_DEBUG << " Notification sent immediately with XFER_ID= "
10951095 << backend_handle->binary_notif .xfer_id << " , expected_completions: "
10961096 << backend_handle->binary_notif .expected_completions ;
10971097 }
@@ -1259,25 +1259,24 @@ nixlLibfabricEngine::getNotifs(notif_list_t ¬if_list) {
12591259// Background progress function that continuously processes completions on all rails
12601260nixl_status_t
12611261nixlLibfabricEngine::cmThread () {
1262- NIXL_DEBUG << " ConnectionManagement thread started successfully" ;
1263- NIXL_DEBUG << " Initial receives already posted in main thread, entering progress loop" ;
1262+ NIXL_DEBUG << " CM: Thread started successfully" ;
12641263
12651264 // Main progress loop - continuously process completions on all rails
12661265 while (!cm_thread_stop_.load ()) {
12671266
12681267 nixl_status_t status = rail_manager.progressAllControlRails ();
12691268 if (status == NIXL_SUCCESS) {
1270- NIXL_DEBUG << " Processed completions on control rails" ;
1269+ NIXL_DEBUG << " CM: Processed completions on control rails" ;
12711270 } else if (status != NIXL_IN_PROG && status != NIXL_SUCCESS) {
1272- NIXL_ERROR << " Failed to process completions on control rails" ;
1271+ NIXL_ERROR << " CM: Failed to process completions on control rails" ;
12731272 return NIXL_ERR_BACKEND;
12741273 }
12751274 // Sleep briefly to avoid spinning too aggressively when blocking cq read is not used
12761275 if (!rail_manager.getControlRail (0 ).blocking_cq_sread_supported ) {
12771276 std::this_thread::sleep_for (std::chrono::nanoseconds (10 ));
12781277 }
12791278 }
1280- NIXL_DEBUG << " ConnectionManagement thread exiting cleanly" ;
1279+ NIXL_DEBUG << " CM: Thread exiting cleanly" ;
12811280 return NIXL_SUCCESS;
12821281}
12831282
@@ -1288,24 +1287,24 @@ nixlLibfabricEngine::cmThread() {
12881287// Progress thread that continuously processes completions only on data rails
12891288nixl_status_t
12901289nixlLibfabricEngine::progressThread () {
1291- NIXL_DEBUG << " Progress thread started successfully for data rails only" ;
1290+ NIXL_DEBUG << " PT: Thread started successfully for data rails only" ;
12921291 // Main progress loop - continuously process completions only on data rails
12931292 while (!progress_thread_stop_.load ()) {
12941293 // Process completions only on data rails (non-blocking)
12951294 bool any_completions = false ;
12961295 nixl_status_t status = rail_manager.progressActiveDataRails ();
12971296 if (status == NIXL_SUCCESS) {
12981297 any_completions = true ;
1299- NIXL_DEBUG << " Processed completions on data rails" ;
1298+ NIXL_DEBUG << " PT: Processed completions on data rails" ;
13001299 } else if (status != NIXL_IN_PROG && status != NIXL_SUCCESS) {
1301- NIXL_ERROR << " Failed to process completions on data rails" ;
1300+ NIXL_ERROR << " PT: Failed to process completions on data rails" ;
13021301 // Don't return error, continue for robustness
13031302 }
13041303 if (!any_completions) {
13051304 std::this_thread::sleep_for (progress_thread_delay_);
13061305 }
13071306 }
1308- NIXL_DEBUG << " Progress thread exiting cleanly" ;
1307+ NIXL_DEBUG << " PT: Thread exiting cleanly" ;
13091308 return NIXL_SUCCESS;
13101309}
13111310
@@ -1356,11 +1355,11 @@ void
13561355nixlLibfabricEngine::processNotification (const std::string &serialized_notif) {
13571356 // Only handle binary notification format
13581357 // Check if this is a binary notification (fixed size)
1359- NIXL_DEBUG << " Received notification size: " << serialized_notif.size ()
1358+ NIXL_DEBUG << " Received notification size= " << serialized_notif.size ()
13601359 << " , sizeof(Notification): " << sizeof (BinaryNotification);
13611360
13621361 if (serialized_notif.size () != sizeof (BinaryNotification)) {
1363- NIXL_ERROR << " Invalid notification size: " << serialized_notif.size ()
1362+ NIXL_ERROR << " Invalid notification size= " << serialized_notif.size ()
13641363 << " , expected: " << sizeof (BinaryNotification);
13651364 return ;
13661365 }
@@ -1375,7 +1374,7 @@ nixlLibfabricEngine::processNotification(const std::string &serialized_notif) {
13751374 uint32_t expected_completions = binary_notif->expected_completions ;
13761375
13771376 NIXL_TRACE << " Received notification from " << remote_name << " msg: " << msg
1378- << " xfer_id: " << xfer_id << " expected_completions: " << expected_completions;
1377+ << " XFER_ID= " << xfer_id << " expected_completions: " << expected_completions;
13791378
13801379 // Check if this is a transfer notification that needs completions matching
13811380 if (expected_completions > 0 ) {
@@ -1426,7 +1425,7 @@ nixlLibfabricEngine::processConnectionAck(uint16_t agent_idx,
14261425 ConnectionState state) {
14271426 std::string remote_agent_name = agent_names_[agent_idx];
14281427 NIXL_DEBUG << " Connection state callback for agent " << remote_agent_name
1429- << " agent_idx: " << agent_idx;
1428+ << " agent_idx= " << agent_idx;
14301429 std::lock_guard<std::mutex> lock (connections_[remote_agent_name]->conn_state_mutex_ );
14311430 connections_[remote_agent_name]->overall_state_ = ConnectionState::CONNECTED;
14321431 connections_[remote_agent_name]->cv_ .notify_all ();
@@ -1478,7 +1477,7 @@ nixlLibfabricEngine::processConnectionRequest(uint16_t agent_idx,
14781477
14791478 NIXL_DEBUG << " Successfully inserted addresses for " << data_fi_addrs.size ()
14801479 << " data rails and " << control_fi_addrs.size () << " control rails"
1481- << " , initiator_control_fi_addr: " << initiator_control_fi_addr;
1480+ << " , initiator_control_fi_addr= " << initiator_control_fi_addr;
14821481
14831482 // Send acknowledgement back to the initiator using the rail manager
14841483 size_t ep_name_len = sizeof (rail->ep_name );
0 commit comments