PMCPUSetGroup

Syntax

#include <cafe/pmcpu.h>

void PMCPUSetGroup(PMCPUGroup *group, u32 e1, u32 e2, u32 e3, u32 e4); 

Parameters

group Pointer to data type PMCPUGroup.
e1 Event to be monitored on performance counter register 1 (picked from list defined in ppc_asm_user.h).
e2 Event to be monitored on performance counter register 2 (picked from list defined in ppc_asm_user.h).
e3 Event to be monitored on performance counter register 3 (picked from list defined in ppc_asm_user.h).
e4 Event to be monitored on performance counter register 4 (picked from list defined in ppc_asm_user.h).

Return Values

None.

Description

Assigns the events to the PMCPUSetGroup to be monitored by the four performance counter registers. The group can be used to monitor a single or up to four events. If the event value is zero, the corresponding counter will not be used and may be used by another group. PMCPUSetGroup does not start the PM counters.

Do Not Call From

Multiple threads This function is not thread-safe.

See Also

OSSetPerformanceMonitor
PMGetCycleCount
PMGetInstructionCount
PMResetCycleAndInstructionCount
PMStartCycleAndInstructionCount
PMStopCycleAndInstructionCount
PMCPUStartGroup
PMCPUReadGroup
PMCPUStopGroup
PMCPUResetGroup
PMCPUResetStartGroup

Revision History

2013/05/08 Automated cleanup pass.
2011/07/13 Initial version.


CONFIDENTIAL