pmc_read_5to6 Subroutine
Purpose
Reads the performance monitoring counter (PMC) 5 and 6 (PMC5 and PMC6) in the problem state.
Library
Performance Monitor APIs Library (libpmapi.a)
Syntax
#include <pmapi.h>
int pmc_read_5to6 (void * buffer)
Description
The pmc_read_5to6 subroutine reads the registers PMC 5 and PMC 6 in the same order into the address of the buffer that is passed as a parameter to the function.
The two 32-bit PMC registers (PMC5 and PMC6) are read into the buffer.
Return Values
If the read operation is successful, a value of zero is returned. If the read operation fails, a value of -1 is returned.
Files
The pmapi.h file defines standard macros, data types, and subroutines.