From 4fbb0361090b36aced69b3ee299fcae0458d8328 Mon Sep 17 00:00:00 2001 From: Jaume Nin Date: Tue, 29 Nov 2011 18:14:02 +0100 Subject: [PATCH] Fix UL RLC traces --- src/lte/helper/lena-helper.cc | 20 ++++++++++++-------- src/lte/helper/lena-helper.h | 5 +++++ 2 files changed, 17 insertions(+), 8 deletions(-) diff --git a/src/lte/helper/lena-helper.cc b/src/lte/helper/lena-helper.cc index b375d60f1..7ff690fd2 100644 --- a/src/lte/helper/lena-helper.cc +++ b/src/lte/helper/lena-helper.cc @@ -525,6 +525,7 @@ LenaHelper::EnableLogComponents (void) LogComponentEnable ("LteEnbMac", LOG_LEVEL_ALL); LogComponentEnable ("LteUeMac", LOG_LEVEL_ALL); LogComponentEnable ("LteRlc", LOG_LEVEL_ALL); + LogComponentEnable ("LteRlcUm", LOG_LEVEL_ALL); LogComponentEnable ("RrFfMacScheduler", LOG_LEVEL_ALL); LogComponentEnable ("PfFfMacScheduler", LOG_LEVEL_ALL); @@ -537,7 +538,7 @@ LenaHelper::EnableLogComponents (void) LogComponentEnable ("LteSinrChunkProcessor", LOG_LEVEL_ALL); std::string propModelStr = m_dlPathlossModelFactory.GetTypeId ().GetName ().erase (0,5).c_str (); - +/* const char* propModel = m_dlPathlossModelFactory.GetTypeId ().GetName ().erase (0,5).c_str (); if (propModelStr.compare ("RandomPropagationLossModel") || propModelStr.compare ("FriisPropagationLossModel")|| @@ -562,7 +563,7 @@ LenaHelper::EnableLogComponents (void) LogComponentEnable (fadingModel, LOG_LEVEL_ALL); } LogComponentEnable ("SingleModelSpectrumChannel", LOG_LEVEL_ALL); - +*/ LogComponentEnable ("LteNetDevice", LOG_LEVEL_ALL); LogComponentEnable ("LteUeNetDevice", LOG_LEVEL_ALL); LogComponentEnable ("LteEnbNetDevice", LOG_LEVEL_ALL); @@ -571,7 +572,13 @@ LenaHelper::EnableLogComponents (void) LogComponentEnable ("MacStatsCalculator", LOG_LEVEL_ALL); } - +void +LenaHelper::EnableTraces (void) +{ + EnableMacTraces (); + EnableRlcTraces (); + EnablePdcpTraces (); +} void LenaHelper::EnableRlcTraces (void) @@ -580,9 +587,6 @@ LenaHelper::EnableRlcTraces (void) EnableUlRlcTraces (); } - - - uint64_t FindImsiFromEnbRlcPath (std::string path) { @@ -634,7 +638,7 @@ FindImsiFromUeRlcPath (std::string path) { NS_LOG_FUNCTION (path); // Sample path input: - // /NodeList/#NodeId/DeviceList/#DeviceId/LteUeRrc/RlcMap/#LCID/RxPDU + // /NodeList/#NodeId/DeviceList/#DeviceId/LteUeRrc/RadioBearer/#LCID/RxPDU // We retrieve the LteUeNetDevice path std::string lteUeNetDevicePath = path.substr (0, path.find ("/LteUeRrc")); @@ -822,7 +826,7 @@ DlSchedulingCallback (Ptr macStats, void LenaHelper::EnableUlRlcTraces (void) { - Config::Connect ("/NodeList/*/DeviceList/*/LteUeRrc/RlcMap/*/TxPDU", + Config::Connect ("/NodeList/*/DeviceList/*/LteUeRrc/RadioBearerMap/*/LteRlc/TxPDU", MakeBoundCallback (&UlTxPduCallback, m_rlcStats)); Config::Connect ("/NodeList/*/DeviceList/*/LteEnbRrc/UeMap/*/RadioBearerMap/*/LteRlc/RxPDU", MakeBoundCallback (&UlRxPduCallback, m_rlcStats)); diff --git a/src/lte/helper/lena-helper.h b/src/lte/helper/lena-helper.h index 558e4186c..a2ff8bc31 100644 --- a/src/lte/helper/lena-helper.h +++ b/src/lte/helper/lena-helper.h @@ -188,6 +188,11 @@ public: */ void EnableLogComponents (void); + /** + * Enables trace sinks for MAC, RLC and PDCP + */ + void EnableTraces (void); + /** * Enable trace sinks for MAC layer */