Skip to content

Commit d82b495

Browse files
carlo-galcodebot
authored andcommitted
sched: remove redundant logs in pucch allocator
Signed-off-by: Carlo Galiotto <[email protected]>
1 parent 82be8c3 commit d82b495

File tree

3 files changed

+11
-48
lines changed

3 files changed

+11
-48
lines changed

lib/scheduler/logging/scheduler_result_logger.cpp

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,29 +45,32 @@ void scheduler_result_logger::log_debug(const sched_result& result)
4545
case dci_dl_rnti_config_type::c_rnti_f1_0: {
4646
const auto& dci = pdcch.dci.c_rnti_f1_0;
4747
fmt::format_to(fmtbuf,
48-
" dci: h_id={} ndi={} rv={} mcs={}",
48+
" dci: h_id={} ndi={} rv={} mcs={} res_ind={}",
4949
dci.harq_process_number,
5050
dci.new_data_indicator,
5151
dci.redundancy_version,
52-
dci.modulation_coding_scheme);
52+
dci.modulation_coding_scheme,
53+
dci.pucch_resource_indicator);
5354
} break;
5455
case dci_dl_rnti_config_type::tc_rnti_f1_0: {
5556
const auto& dci = pdcch.dci.tc_rnti_f1_0;
5657
fmt::format_to(fmtbuf,
57-
" dci: h_id={} ndi={} rv={} mcs={}",
58+
" dci: h_id={} ndi={} rv={} mcs={} res_ind={}",
5859
dci.harq_process_number,
5960
dci.new_data_indicator,
6061
dci.redundancy_version,
61-
dci.modulation_coding_scheme);
62+
dci.modulation_coding_scheme,
63+
dci.pucch_resource_indicator);
6264
} break;
6365
case dci_dl_rnti_config_type::c_rnti_f1_1: {
6466
const auto& dci = pdcch.dci.c_rnti_f1_1;
6567
fmt::format_to(fmtbuf,
66-
" dci: h_id={} ndi={} rv={} mcs={}",
68+
" dci: h_id={} ndi={} rv={} mcs={} res_ind={}",
6769
dci.harq_process_number,
6870
dci.tb1_new_data_indicator,
6971
dci.tb1_redundancy_version,
70-
dci.tb1_modulation_coding_scheme);
72+
dci.tb1_modulation_coding_scheme,
73+
dci.pucch_resource_indicator);
7174
if (dci.downlink_assignment_index.has_value()) {
7275
fmt::format_to(fmtbuf, " dai={}", *dci.downlink_assignment_index);
7376
}

lib/scheduler/pucch_scheduling/pucch_allocator_impl.cpp

Lines changed: 2 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -148,11 +148,6 @@ optional<unsigned> pucch_allocator_impl::alloc_common_pucch_harq_ack_ue(cell_res
148148

149149
pucch_common_alloc_grid[slot_alloc[k0 + k1 + slot_alloc.cfg.ntn_cs_koffset].slot.to_uint()].emplace_back(tcrnti);
150150

151-
logger.debug("tc-rnti={}: PUCCH HARQ-ACK common with res_ind={} allocated for slot={}",
152-
tcrnti,
153-
pucch_res_indicator,
154-
pucch_slot_alloc.slot);
155-
156151
return pucch_res_indicator;
157152
}
158153

@@ -789,12 +784,8 @@ optional<unsigned> pucch_allocator_impl::allocate_new_format1_harq_grant(cell_sl
789784
const unsigned HARQ_BITS_IN_NEW_PUCCH_GRANT = 1;
790785
fill_pucch_ded_format1_grant(
791786
pucch_pdu, crnti, *pucch_harq_res_info.pucch_res, HARQ_BITS_IN_NEW_PUCCH_GRANT, sr_nof_bits::no_sr);
792-
auto pucch_res_indicator = static_cast<unsigned>(pucch_harq_res_info.pucch_res_indicator);
787+
const auto pucch_res_indicator = static_cast<unsigned>(pucch_harq_res_info.pucch_res_indicator);
793788

794-
logger.debug("rnti={}: PUCCH HARQ-ACK allocation on F1 with res_ind={} for slot={} completed",
795-
crnti,
796-
pucch_res_indicator,
797-
pucch_slot_alloc.slot);
798789
return pucch_res_indicator;
799790
}
800791

@@ -950,17 +941,6 @@ optional<unsigned> pucch_allocator_impl::convert_to_format2_harq(cell_slot_resou
950941
sr_bits,
951942
csi1_nof_bits_only_harq);
952943

953-
logger.debug("rnti={}: PUCCH Format 2 grant allocation with {} H-ACK, {} SR, {} CSI bits with res_ind={} for "
954-
"slot={} completed",
955-
rnti,
956-
curr_harq_bits + harq_ack_bits_increment,
957-
sr_nof_bits_to_uint(sr_bits),
958-
csi1_nof_bits_only_harq,
959-
format2_res.pucch_res_indicator,
960-
pucch_slot_alloc.slot
961-
962-
);
963-
964944
return format2_res.pucch_res_indicator;
965945
}
966946

@@ -1046,12 +1026,6 @@ optional<unsigned> pucch_allocator_impl::change_format2_resource(cell_slot_resou
10461026
harq_ack_bits_increment,
10471027
sr_bits_to_report,
10481028
csi_bits_to_report);
1049-
logger.debug("rnti={}: PUCCH Format 2 grant allocation with {} H-ACK, {} SR, {} CSI bits for slot={} completed",
1050-
rnti,
1051-
harq_ack_bits_increment,
1052-
sr_nof_bits_to_uint(sr_bits_to_report),
1053-
csi_bits_to_report,
1054-
pucch_slot_alloc.slot);
10551029

10561030
return static_cast<unsigned>(format2_res.pucch_res_indicator);
10571031
}
@@ -1075,10 +1049,8 @@ optional<unsigned> pucch_allocator_impl::add_harq_ack_bit_to_format1_grant(pucch
10751049
}
10761050
// Update the HARQ, if present.
10771051
existing_harq_grant.format_1.harq_ack_nof_bits++;
1078-
auto pucch_res_indicator = static_cast<unsigned>(pucch_res_idx);
1052+
const auto pucch_res_indicator = static_cast<unsigned>(pucch_res_idx);
10791053

1080-
logger.debug(
1081-
"rnti={}: HARQ-ACK mltplxd on existing PUCCH F1 with res_ind={} for slot={}", rnti, pucch_res_indicator, sl_tx);
10821054
return pucch_res_indicator;
10831055
}
10841056

@@ -1259,10 +1231,6 @@ optional<unsigned> pucch_allocator_impl::add_harq_bits_to_harq_f2_grant(pucch_in
12591231
}
12601232

12611233
existing_f2_grant.format_2.harq_ack_nof_bits += harq_ack_bits_increment;
1262-
logger.debug("rnti={}: HARQ-ACK multiplexed on existing PUCCH F2 with res_ind={} for slot={}",
1263-
existing_f2_grant.crnti,
1264-
pucch_f2_harq_cfg.pucch_res_indicator,
1265-
sl_tx);
12661234

12671235
return pucch_f2_harq_cfg.pucch_res_indicator;
12681236
}

lib/scheduler/uci_scheduling/uci_allocator_impl.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -278,8 +278,6 @@ void uci_allocator_impl::multiplex_uci_on_pusch(ul_sched_info& pu
278278
update_uci_on_pusch_harq_offsets(
279279
uci.harq.value(), ue_cell_cfg.cfg_dedicated().ul_config.value().init_ul_bwp.pusch_cfg.value().uci_cfg.value());
280280
}
281-
282-
logger.debug("rnti={}: UCI mltplxd on PUSCH for slot={}", crnti, slot_alloc.slot);
283281
}
284282

285283
void uci_allocator_impl::uci_allocate_sr_opportunity(cell_slot_resource_allocator& slot_alloc,
@@ -325,12 +323,6 @@ void uci_allocator_impl::uci_allocate_csi_opportunity(cell_slot_resource_allocat
325323
ue_cell_cfg.cfg_dedicated().ul_config.value().init_ul_bwp.pusch_cfg.value().uci_cfg.value().scaling;
326324

327325
add_csi_to_uci_on_pusch(existing_pusch->uci.value().csi.emplace(), ue_cell_cfg);
328-
329-
logger.debug("rnti={} UCI with 0 H-ACK, {} CSI-p1 and {} CSI-p2 bits for slot={} allocated on PUSCH",
330-
crnti,
331-
existing_pusch->uci.value().csi.value().csi_part1_nof_bits,
332-
existing_pusch->uci.value().csi.value().beta_offset_csi_2.has_value() ? "up to 11" : "0",
333-
slot_alloc.slot);
334326
return;
335327
}
336328

0 commit comments

Comments
 (0)