From 46a4097f6a76120d0f42dbfbe870f58f6c090502 Mon Sep 17 00:00:00 2001 From: abgaber Date: Tue, 21 Apr 2026 17:02:56 +0200 Subject: [PATCH] T-Tracer: update shared memory sizing for 5 messages/slot Set NUM_MESSAGES_PER_SLOT=5, 100 slots buffer depth (~234 MiB). Add separate project IDs and ftok paths for gNB and UE. --- common/utils/T/tracer/shared_memory_config.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/common/utils/T/tracer/shared_memory_config.h b/common/utils/T/tracer/shared_memory_config.h index 570887aec9..a1938bf527 100644 --- a/common/utils/T/tracer/shared_memory_config.h +++ b/common/utils/T/tracer/shared_memory_config.h @@ -18,10 +18,13 @@ #ifndef _SHARED_MEMORY_CONFIG_H_ #define _SHARED_MEMORY_CONFIG_H_ -#define SHMSIZE ((122.88e6 / (100 * 20)) * 1000 * 8) // Assume capture in 1000, each I+Q represented by 8 byts -// 122.88e6: 10ms at 100 MHz BW of 5G NR -// 20: 20 slots in 10ms -// subcarrier spacing: 30 KHz +#define NUM_MESSAGES_PER_SLOT 5 +#define SHMSIZE ((122.88e6 / (100 * 20)) * 100 * NUM_MESSAGES_PER_SLOT * 8) // ~229 MiB +// 122.88e6: sample rate at 100 MHz BW of 5G NR +// 100 * 20: 2000 slots/s (20 slots/frame, 100 frames/s) at SCS 30 kHz +// 100: number of slots to capture +// NUM_MESSAGES_PER_SLOT: messages captured per slot +// 8: bytes per complex I+Q sample // for gNB T Tracer App #define GETKEYDIR1_gNB ("/tmp/gnb_app1")