Arm Event Counters Functions - 2022.2 English - UG643

Xilinx Standalone Library Documentation: BSP and Libraries Document Collection (UG643)

Document ID
UG643
Release Date
2022-10-19
Version
2022.2 English

This section contain APIs for configuring and controlling the Performance Monitor Events for ARM based processors supported by standalone BSP. For more information about the event counters, see xpm_counter.h.

It contains APIs to setup an event, return the event counter value, disable event(s), enable events, reset event counters. It also provides a helper function: Xpm_SleepPerfCounter that is used to implement sleep routines in non-OS environment. It also contains two APIs which are being deprecated. Users are advised not to use them. On usage of these APIs, please refer to xpm_conter_example.c file which can be found at standalone example folder.

Table 1. Quick Function Reference
Type Name Arguments
void Xpm_SetEvents
  • s32 PmcrCfg
void Xpm_GetEventCounters
  • u32 * PmCtrValue
u32 Xpm_DisableEvent
  • EventCntrId
u32 Xpm_SetUpAnEvent
  • u32 EventID
u32 Xpm_GetEventCounter
  • EventCntrId
  • u32 * CntVal
void Xpm_DisableEventCounters
  • void
void Xpm_EnableEventCounters
  • void
void Xpm_ResetEventCounters
  • void
void Xpm_SleepPerfCounter
  • u32 delay
  • u64 frequency