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")