From 2b37edaa3c99c9316f6f37167699a6cd05f17f8e Mon Sep 17 00:00:00 2001 From: vijay chadachan Date: Mon, 18 Mar 2024 12:47:30 +0100 Subject: [PATCH] Additional memory allocation for MAC stats logging to enable 32 UE support The memory allocation is increased to enable the periodic mac stats logging to enable increased number of UEs data. --- openair2/LAYER2/NR_MAC_gNB/gNB_scheduler.c | 2 +- openair2/LAYER2/NR_MAC_gNB/main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler.c b/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler.c index af8b077dea..2c3ca94393 100644 --- a/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler.c +++ b/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler.c @@ -241,7 +241,7 @@ void gNB_dlsch_ulsch_scheduler(module_id_t module_idP, frame_t frame, sub_frame_ } if ((slot == 0) && (frame & 127) == 0) { - char stats_output[16000] = {0}; + char stats_output[32656] = {0}; dump_mac_stats(gNB, stats_output, sizeof(stats_output), true); LOG_I(NR_MAC, "Frame.Slot %d.%d\n%s\n", frame, slot, stats_output); } diff --git a/openair2/LAYER2/NR_MAC_gNB/main.c b/openair2/LAYER2/NR_MAC_gNB/main.c index 72689dd90d..320aa273b7 100644 --- a/openair2/LAYER2/NR_MAC_gNB/main.c +++ b/openair2/LAYER2/NR_MAC_gNB/main.c @@ -45,7 +45,7 @@ extern RAN_CONTEXT_t RC; -#define MACSTATSSTRLEN 16000 +#define MACSTATSSTRLEN 36256 void *nrmac_stats_thread(void *arg) {