/* This function disables the event counters in L2 Cache controller, saves the counter values and resets the counters.  */
void XL2cc_EventCtrStop(u32 *EveCtr0, u32 *EveCtr1)
/* This function disables the event counters in L2 Cache controller, saves the counter values and resets the counters.  */
void XL2cc_EventCtrStop(u32 *EveCtr0, u32 *EveCtr1)
{
	*((volatile u32*) (XPS_L2CC_BASEADDR + XPS_L2CC_EVNT_CNTRL_OFFSET)) = 0U;
	*EveCtr1 = *((volatile u32*)(XPS_L2CC_BASEADDR + XPS_L2CC_EVNT_CNT1_VAL_OFFSET));
	*EveCtr0 = *((volatile u32*)(XPS_L2CC_BASEADDR + XPS_L2CC_EVNT_CNT0_VAL_OFFSET));
	XL2cc_EventCtrReset();
}