PowerPC e500 Core Family Reference Manual, Rev. 1
7-10
Freescale Semiconductor
Performance Monitor
7.4
Performance Monitor Interrupt
The performance monitor interrupt is triggered by an enabled condition or event. The only enabled
condition or event defined for the e500 is the following:
•
A PMCn overflow condition occurs when both of the following are true:
— The counter’s overflow condition is enabled; PMLCan[CE] is set.
— The counter indicates an overflow; PMCn[OV] is set.
If PMGC0[PMIE] is set, an enabled condition or event triggers the signaling of a performance
monitor exception.
If PMGC0[FCECE] is set, an enabled condition or event also triggers all performance monitor
counters to freeze.
Although the performance monitor exception condition could occur with MSR[EE] cleared, the
interrupt cannot be taken until MSR[EE] is set. If PMCn overflows and would signal an exception
(PMLCan[CE] and PMGC0[PMIE] are set) while interrupts are disabled (MSR[EE] is clear), and
freezing of the counters is not enabled (PMGC0[FCECE] is clear), PMCn can wrap around to all
zeros again without the performance monitor interrupt being taken.
7.5
Event Counting
This section describes configurability and specific unconditional counting modes.
7.5.1
Processor Context Configurability
Counting can be enabled if conditions in the processor state match a software-specified condition.
Because a software task scheduler may switch a processor’s execution among multiple processes
and because statistics on only a particular process may be of interest, a facility is provided to mark
a process. The performance monitor mark bit, MSR[PMM], is used for this purpose. System
software may set this bit when a marked process is running. This enables statistics to be gathered
only during the execution of the marked process. The states of MSR[PR,PMM] together define a
state that the processor (supervisor or user) and the process (marked or unmarked) may be in at
any time. If this state matches an individual state specified by the
PMLCan[FCS,FCU,FCM1,FCM0] fields, the state for which monitoring is enabled, counting is
enabled for PMCn.
Summary of Contents for PowerPC e500 Core
Page 1: ...PowerPC e500 Core Family Reference Manual Supports e500v1 e500v2 E500CORERM Rev 1 4 2005...
Page 36: ...PowerPC e500 Core Family Reference Manual Rev 1 xxxvi Freescale Semiconductor...
Page 38: ...PowerPC e500 Core Family Reference Manual Rev 1 Part I 2 Freescale Semiconductor...
Page 332: ...PowerPC e500 Core Family Reference Manual Rev 1 Part II 2 Freescale Semiconductor...
Page 530: ...Opcode Listings PowerPC e500 Core Family Reference Manual Rev 1 D 50 Freescale Semiconductor...
Page 534: ...PowerPC e500 Core Family Reference Manual Rev 1 E 4 Freescale Semiconductor Revision History...