PAPI  5.7.0.0
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 110 of file clockcore.c.

111 {
112  /* check PAPI_get_real_cyc */
113  clock_res_check( 0, quiet );
114  /* check PAPI_get_real_usec */
115  clock_res_check( 1, quiet );
116 
117  /* check PAPI_get_virt_cyc */
118  /* Virtual */
119  if ( PAPI_get_virt_cyc( ) != -1 ) {
120  clock_res_check( 2, quiet );
121  } else {
123  }
124 
125  /* check PAPI_get_virt_usec */
126  if ( PAPI_get_virt_usec( ) != -1 ) {
127  clock_res_check( 3, quiet );
128  } else {
130  }
131 
132  return PAPI_OK;
133 }
#define PAPI_OK
Definition: fpapi.h:105
long long PAPI_get_virt_usec(void)
Definition: papi.c:6372
long long PAPI_get_virt_cyc(void)
Definition: papi.c:6300
#define CLOCKCORE_VIRT_USEC_FAIL
Definition: clockcore.h:2
static int clock_res_check(int flag, int quiet)
Definition: clockcore.c:20
#define CLOCKCORE_VIRT_CYC_FAIL
Definition: clockcore.h:1
int quiet
Definition: rapl_overflow.c:18
Here is the call graph for this function: