PAPI 7.1.0.0
Loading...
Searching...
No Matches
clockcore.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define CLOCKCORE_VIRT_CYC_FAIL   -1
 
#define CLOCKCORE_VIRT_USEC_FAIL   -2
 

Functions

int clockcore (int quiet)
 

Macro Definition Documentation

◆ CLOCKCORE_VIRT_CYC_FAIL

#define CLOCKCORE_VIRT_CYC_FAIL   -1

Definition at line 1 of file clockcore.h.

◆ CLOCKCORE_VIRT_USEC_FAIL

#define CLOCKCORE_VIRT_USEC_FAIL   -2

Definition at line 2 of file clockcore.h.

Function Documentation

◆ clockcore()

int clockcore ( int  quiet)

Definition at line 111 of file clockcore.c.

112{
113 /* check PAPI_get_real_cyc */
115 /* check PAPI_get_real_usec */
117
118 /* check PAPI_get_virt_cyc */
119 /* Virtual */
120 if ( PAPI_get_virt_cyc( ) != -1 ) {
122 } else {
124 }
125
126 /* check PAPI_get_virt_usec */
127 if ( PAPI_get_virt_usec( ) != -1 ) {
129 } else {
131 }
132
133 return PAPI_OK;
134}
get virtual time counter value in clock cycles
get virtual time counter values in microseconds
static int clock_res_check(int flag, int quiet)
Definition: clockcore.c:20
#define CLOCKCORE_VIRT_USEC_FAIL
Definition: clockcore.h:2
#define CLOCKCORE_VIRT_CYC_FAIL
Definition: clockcore.h:1
#define PAPI_OK
Definition: f90papi.h:73
int quiet
Definition: rapl_overflow.c:19
Here is the call graph for this function:
Here is the caller graph for this function: