X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fphy_stub%2Fphy_stub_ex_ms.c;h=af924c968fae04fa2ba5f735085f55d407cc1169;hb=904a5d446b480d71da1bf81f892bab86ab365ce6;hp=4bbdbe1e272a0bf586c2bc3e86e6f6a32026376c;hpb=f191979f3454e08cc049af12d6323819730260ef;p=o-du%2Fl2.git diff --git a/src/phy_stub/phy_stub_ex_ms.c b/src/phy_stub/phy_stub_ex_ms.c index 4bbdbe1e2..af924c968 100644 --- a/src/phy_stub/phy_stub_ex_ms.c +++ b/src/phy_stub/phy_stub_ex_ms.c @@ -19,7 +19,7 @@ #include "common_def.h" #include "phy_stub_utils.h" #ifdef INTEL_FAPI -#include "fapi.h" +#include "nr5g_fapi_internal.h" #include "fapi_vendor_extension.h" #endif #include "phy_stub.h" @@ -49,6 +49,52 @@ uint8_t phyStubActvInit(Ent ent, Inst inst, Region reg, Reason reason) return ROK; } +#ifdef CALL_FLOW_DEBUG_LOG +/************************************************************************** +* @brief Function prints the src dest and msg reached to egtp. +* +* @details +* +* Function : callFlowPhyStubActvTsk +* +* Functionality: +* Function prints the src dest and msg reached to egtp. +* +* @param[in] Pst *pst, Post structure of the primitive. +* +* @return void +* +***************************************************************************/ + +void callFlowPhyStubActvTsk(Pst *pst) +{ + char sourceTask[50]; + char destTask[50]="PHY"; + char message[100]; + + switch(pst->srcEnt) + { + case ENTPHYSTUB: + { + strcpy(sourceTask,"PHY"); + switch(pst->event) + { + case EVT_PHY_START_SLOT_IND: + { + strcpy(message,"EVT_PHY_START_SLOT_IND"); + break; + } + default: + { + strcpy(message,"Invalid Event"); + break; + } + } + } + } + DU_LOG("\nCall Flow: %s -> %s : %s\n", sourceTask, destTask, message); +} +#endif /******************************************************************* * @@ -69,6 +115,11 @@ uint8_t phyStubActvInit(Ent ent, Inst inst, Region reg, Reason reason) uint8_t phyStubActvTsk(Pst *pst, Buffer *mBuf) { DU_LOG("\nPHY_STUB: Received Event [%d]", pst->event); + +#ifdef CALL_FLOW_DEBUG_LOG + callFlowPhyStubActvTsk(pst); +#endif + switch(pst->srcEnt) { case ENTPHYSTUB: