From 262cda6199e7f883b15cd7b4aae9b8ac1e351524 Mon Sep 17 00:00:00 2001
From: Cedric Roux <cedric.roux@eurecom.fr>
Date: Fri, 10 Jun 2016 10:48:13 +0200
Subject: [PATCH] add PDCP traces to the code

---
 openair2/LAYER2/PDCP_v10.1.0/pdcp.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/openair2/LAYER2/PDCP_v10.1.0/pdcp.c b/openair2/LAYER2/PDCP_v10.1.0/pdcp.c
index f25e921570..40a1058409 100755
--- a/openair2/LAYER2/PDCP_v10.1.0/pdcp.c
+++ b/openair2/LAYER2/PDCP_v10.1.0/pdcp.c
@@ -111,6 +111,11 @@ boolean_t pdcp_data_req(
   VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME(VCD_SIGNAL_DUMPER_FUNCTIONS_PDCP_DATA_REQ,VCD_FUNCTION_IN);
   CHECK_CTXT_ARGS(ctxt_pP);
 
+#if T_TRACER
+  if (ctxt_pP->enb_flag != ENB_FLAG_NO)
+    T(T_ENB_PDCP_DL, T_INT(ctxt_pP->module_id), T_INT(ctxt_pP->rnti), T_INT(rb_idP), T_INT(sdu_buffer_sizeP));
+#endif
+
   if (modeP == PDCP_TRANSMISSION_MODE_TRANSPARENT) {
     AssertError (rb_idP < NB_RB_MBMS_MAX, return FALSE, "RB id is too high (%u/%d) %u %u!\n", rb_idP, NB_RB_MBMS_MAX, ctxt_pP->module_id, ctxt_pP->rnti);
   } else {
@@ -458,6 +463,11 @@ pdcp_data_ind(
   LOG_F(PDCP,"\n");
 #endif
 
+#if T_TRACER
+  if (ctxt_pP->enb_flag != ENB_FLAG_NO)
+    T(T_ENB_PDCP_UL, T_INT(ctxt_pP->module_id), T_INT(ctxt_pP->rnti), T_INT(rb_idP), T_INT(sdu_buffer_sizeP));
+#endif
+
   if (MBMS_flagP) {
     AssertError (rb_idP < NB_RB_MBMS_MAX, return FALSE,
                  "RB id is too high (%u/%d) %u rnti %x!\n",
-- 
GitLab