XilinxProcessorIPLib/drivers/axipmon/src/xaxipmon.c
s32 XAxiPmon_StopEventLog(XAxiPmon *InstancePtr)
{
	u32 RegValue;

	/*
	 * Assert the arguments.
	 */
	Xil_AssertNonvoid(InstancePtr != NULL);
	Xil_AssertNonvoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	Xil_AssertNonvoid((InstancePtr->Mode == XAPM_MODE_TRACE) ||
			((InstancePtr->Mode == XAPM_MODE_ADVANCED) &&
			(InstancePtr->Config.IsEventLog == 1U)));

	/* Read current register value */
	RegValue = XAxiPmon_ReadReg(InstancePtr->Config.BaseAddress,
						(u32)XAPM_CTL_OFFSET);

	/* Write the new value to the Control register to disable
	 * event logging */
	XAxiPmon_WriteReg(InstancePtr->Config.BaseAddress, (u32)XAPM_CTL_OFFSET,
	                    RegValue & ~XAPM_CR_EVENTLOG_ENABLE_MASK);

	return XST_SUCCESS;
}
/*****************************************************************************/
/**
*
* This function disables the following in the AXI Performance Monitor:
*   - Event logging
*
* @param        InstancePtr is a pointer to the XAxiPmon instance.
*
* @return       XST_SUCCESS
*
* @note         None
*
******************************************************************************/
This function disables the following in the AXI Performance Monitor:
Event logging
This function disables the following in the AXI Performance Monitor : Event logging
s32 XAxiPmon_StopEventLog(XAxiPmon *InstancePtr)
{
	u32 RegValue;
	Xil_AssertNonvoid(InstancePtr != NULL);
	Xil_AssertNonvoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	Xil_AssertNonvoid((InstancePtr->Mode == XAPM_MODE_TRACE) ||
			((InstancePtr->Mode == XAPM_MODE_ADVANCED) &&
			(InstancePtr->Config.IsEventLog == 1U)));
	RegValue = XAxiPmon_ReadReg(InstancePtr->Config.BaseAddress,
						(u32)XAPM_CTL_OFFSET);
	XAxiPmon_WriteReg(InstancePtr->Config.BaseAddress, (u32)XAPM_CTL_OFFSET,
	                    RegValue & ~XAPM_CR_EVENTLOG_ENABLE_MASK);
	return XST_SUCCESS;
}
s32 XAxiPmon_StopEventLog ( XAxiPmon * InstancePtr ) { u32 RegValue ; Xil_AssertNonvoid ( InstancePtr != NULL ) ; Xil_AssertNonvoid ( InstancePtr -> IsReady == XIL_COMPONENT_IS_READY ) ; Xil_AssertNonvoid ( ( InstancePtr -> Mode == XAPM_MODE_TRACE ) || ( ( InstancePtr -> Mode == XAPM_MODE_ADVANCED ) && ( InstancePtr -> Config . IsEventLog == 1U ) ) ) ; RegValue = XAxiPmon_ReadReg ( InstancePtr -> Config . BaseAddress , ( u32 ) XAPM_CTL_OFFSET ) ; XAxiPmon_WriteReg ( InstancePtr -> Config . BaseAddress , ( u32 ) XAPM_CTL_OFFSET , RegValue & ~ XAPM_CR_EVENTLOG_ENABLE_MASK ) ; return XST_SUCCESS ; }
This function disables the following in the AXI Performance Monitor:
 Event logging
This function disables the following in the AXI Performance Monitor : Event logging
/*
	 * Assert the arguments.
	 */ /* Read current register value */ /* Write the new value to the Control register to disable
	 * event logging */