Add timing stats for TRS processing

Signed-off-by: Sakthivel Velumani <s.velumani@northeastern.edu>
This commit is contained in:
Sakthivel Velumani
2025-08-07 13:34:03 -04:00
parent 016ab2cfb3
commit 0f45f471b2
2 changed files with 4 additions and 1 deletions

View File

@@ -992,6 +992,7 @@ void nr_ue_csi_rs_procedures(PHY_VARS_NR_UE *ue,
int trs_cfo = 0; int trs_cfo = 0;
const bool do_trs_est = (csirs_config_pdu->csi_type == 0) && (res_idx == 1); const bool do_trs_est = (csirs_config_pdu->csi_type == 0) && (res_idx == 1);
if (do_trs_est) { if (do_trs_est) {
start_meas_nr_ue_phy(ue, TRS_PROCESSING);
nr_ue_trs_processing(ue, nr_ue_trs_processing(ue,
trs_estimates, trs_estimates,
csi_rs_ls_estimated_channel, csi_rs_ls_estimated_channel,
@@ -1002,6 +1003,7 @@ void nr_ue_csi_rs_procedures(PHY_VARS_NR_UE *ue,
csirs_config_pdu->symb_l0, csirs_config_pdu->symb_l0,
&trs_cfo, &trs_cfo,
NULL); // Time offset not estimated because it is corrected using PBCH DMRS NULL); // Time offset not estimated because it is corrected using PBCH DMRS
stop_meas_nr_ue_phy(ue, TRS_PROCESSING);
} }
switch (csirs_config_pdu->measurement_bitmap) { switch (csirs_config_pdu->measurement_bitmap) {

View File

@@ -38,7 +38,8 @@
FN(ULSCH_INTERLEAVING_STATS),\ FN(ULSCH_INTERLEAVING_STATS),\
FN(ULSCH_ENCODING_STATS),\ FN(ULSCH_ENCODING_STATS),\
FN(OFDM_MOD_STATS),\ FN(OFDM_MOD_STATS),\
FN(PRACH_GEN_STATS) FN(PRACH_GEN_STATS),\
FN(TRS_PROCESSING)
typedef enum { typedef enum {
FOREACH_NR_PHY_CPU_MEAS(NOOP), FOREACH_NR_PHY_CPU_MEAS(NOOP),