xpm_counter.h File Reference

#include <stdint.h>
#include "xpseudo_asm.h"
#include "xil_types.h"

Functions

void Xpm_SetEvents (int PmcrCfg)
void Xpm_GetEventCounters (u32 *PmCtrValue)

Detailed Description

This header file contains APIs for configuring and controlling the Cortex-A9 Performance Monitor Events. Cortex-A9 Performance Monitor has 6 event counters which can be used to count a variety of events described in Coretx-A9 TRM. This file defines configurations, where value configures the event counters to count a set of events.

Xpm_SetEvents can be used to set the event counters to count a set of events and Xpm_GetEventCounters can be used to read the counter values.

Note:
This file doesn't handle the Cortex-A9 cycle counter, as the cycle counter is being used for time keeping.

 MODIFICATION HISTORY:

 Ver   Who  Date     Changes
 ----- ---- -------- -----------------------------------------------
 1.00a sdm  07/11/11 First release
 

Function Documentation

void Xpm_GetEventCounters u32 *  PmCtrValue  ) 
 

This function disables the event counters and returns the counter values.

Parameters:
PmCtrValue is a pointer to an array of type u32 PmCtrValue[6]. It is an output parameter which is used to return the PM counter values.
Returns:
None.
Note:
None.

void Xpm_SetEvents int  PmcrCfg  ) 
 

This function configures the Cortex A9 event counters controller, with the event codes, in a configuration selected by the user and enables the counters.

Parameters:
PmcrCfg is configuration value based on which the event counters are configured. Use XPM_CNTRCFG* values defined in xpm_counter.h.
Returns:
None.
Note:
None.


Generated on Thu Feb 13 14:48:12 2014 for 2014.1_doc by  doxygen 1.4.5