mirror of https://github.com/PentHertz/srsLTE.git
enable log line when rlc tx pdu last segment is sent but the latency log is disabled
This commit is contained in:
parent
951912d18a
commit
7ffc236a1a
|
@ -185,7 +185,6 @@ private:
|
|||
pthread_mutex_t mutex;
|
||||
|
||||
// Metrics
|
||||
uint64_t tx_byte_count = 0;
|
||||
#ifdef ENABLE_TIMESTAMP
|
||||
srslte::rolling_average<double> mean_pdu_latency_us;
|
||||
#endif
|
||||
|
|
|
@ -65,7 +65,6 @@ private:
|
|||
uint32_t vt_us = 0; // Send state. SN to be assigned for next PDU.
|
||||
|
||||
// Metrics
|
||||
uint64_t tx_byte_count = 0;
|
||||
#ifdef ENABLE_TIMESTAMP
|
||||
srslte::rolling_average<double> mean_pdu_latency_us;
|
||||
#endif
|
||||
|
|
|
@ -844,6 +844,8 @@ int rlc_am_lte::rlc_am_lte_tx::build_data_pdu(uint8_t* payload, uint32_t nof_byt
|
|||
RB_NAME,
|
||||
latency_us,
|
||||
(long)mean_pdu_latency_us.value());
|
||||
#else
|
||||
log->debug("%s Complete SDU scheduled for tx.\n", rb_name.c_str());
|
||||
#endif
|
||||
tx_sdu.reset();
|
||||
}
|
||||
|
@ -890,6 +892,8 @@ int rlc_am_lte::rlc_am_lte_tx::build_data_pdu(uint8_t* payload, uint32_t nof_byt
|
|||
RB_NAME,
|
||||
latency_us,
|
||||
(long)mean_pdu_latency_us.value());
|
||||
#else
|
||||
log->debug("%s Complete SDU scheduled for tx.\n", rb_name.c_str());
|
||||
#endif
|
||||
tx_sdu.reset();
|
||||
}
|
||||
|
@ -951,7 +955,6 @@ int rlc_am_lte::rlc_am_lte_tx::build_data_pdu(uint8_t* payload, uint32_t nof_byt
|
|||
log->debug("%s\n", rlc_amd_pdu_header_to_string(header).c_str());
|
||||
debug_state();
|
||||
|
||||
tx_byte_count += buffer_ptr->N_bytes;
|
||||
return total_len;
|
||||
}
|
||||
|
||||
|
|
|
@ -152,6 +152,8 @@ int rlc_um_lte::rlc_um_lte_tx::build_data_pdu(unique_byte_buffer_t pdu, uint8_t*
|
|||
rb_name.c_str(),
|
||||
latency_us,
|
||||
(long)mean_pdu_latency_us.value());
|
||||
#else
|
||||
log->debug("%s Complete SDU scheduled for tx.\n", rb_name.c_str());
|
||||
#endif
|
||||
tx_sdu.reset();
|
||||
}
|
||||
|
@ -189,6 +191,8 @@ int rlc_um_lte::rlc_um_lte_tx::build_data_pdu(unique_byte_buffer_t pdu, uint8_t*
|
|||
rb_name.c_str(),
|
||||
latency_us,
|
||||
(long)mean_pdu_latency_us.value());
|
||||
#else
|
||||
log->debug("%s Complete SDU scheduled for tx.\n", rb_name.c_str());
|
||||
#endif
|
||||
tx_sdu.reset();
|
||||
}
|
||||
|
@ -210,7 +214,6 @@ int rlc_um_lte::rlc_um_lte_tx::build_data_pdu(unique_byte_buffer_t pdu, uint8_t*
|
|||
log->info_hex(payload, pdu->N_bytes, "%s Tx PDU SN=%d (%d B)\n", rb_name.c_str(), header.sn, pdu->N_bytes);
|
||||
|
||||
debug_state();
|
||||
tx_byte_count += pdu->N_bytes;
|
||||
|
||||
return pdu->N_bytes;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue