Intel® IXP400 Software
The PerfProf module provides the client with APIs to start and stop the collections of events. It will provide an API that reads and stores the value of all the counters. It will also enable the client to measure the latency (in clock cycles) between any two Intel XScale core instructions in a program.
Furthermore, the module will allow the client to determine the frequency with which Intel XScale core code is being executed.
17.3.1Counter Buffer Overflow
The PerfProf module will allow the client to count up to four different events simultaneously and will also handle the overflow of these counters. In the case of overflow, the module will need to register an interrupt service routine. However, the handling of overflow will have a minimal impact on the running system.
The program shall keep track of the number of times a buffer has over flowed. The necessary adjustments will then be made to the final count value, to ensure an accurate value.
17.4Internal Bus PMU
The internal bus PMU enables performance management of components accessing or utilizing the north and south bus. This includes statistics of the bus itself.
The counters monitor two types of events, which are occurrence events and duration events. The occurrence event causes the counter to increase by one, each time the event occurs. For duration events, the counter counts the number of clocks during which a particular condition or a set of conditions is true.
This PMU is able to monitor and gather statistics on SDRAM, north bus, south bus, north masters, north slaves, south masters, south slaves, and miscellaneous items like the cycle count. Among the details being monitored are:
•North bus usage — The north bus occupancy reported by the PMU.
This is done by taking a snapshot of the total cycle count and subtracting the idle time.
•South bus usage — The south bus occupancy reported by the PMU.
This is done by taking a snapshot of the total cycle count and subtracting the idle time.
Programmer’s Guide | IXP400 Software Version 2.0 | April 2005 |
| Document Number: 252539, Revision: 007 | 249 |