PAPI  5.0.1.0
darwin-common.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define min(x, y)

Functions

static pid_t mygettid (void)
long long _darwin_get_real_cycles (void)
long long _darwin_get_virt_usec_times (void)
long long _darwin_get_real_usec_gettimeofday (void)

Define Documentation

#define min (   x,
  y 
)
Value:
({              \
    typeof(x) _min1 = (x);          \
    typeof(y) _min2 = (y);          \
    (void) (&_min1 == &_min2);      \
    _min1 < _min2 ? _min1 : _min2; })

Definition at line 4 of file darwin-common.h.


Function Documentation

long long _darwin_get_real_cycles ( void  )

Definition at line 363 of file darwin-common.c.

{
    long long retval;

    retval = get_cycles(  );

    return retval;
}

Here is the call graph for this function:

long long _darwin_get_real_usec_gettimeofday ( void  )

Definition at line 374 of file darwin-common.c.

{
    
   long long retval;

   struct timeval buffer;
   gettimeofday( &buffer, NULL );
   retval = ( long long ) buffer.tv_sec * ( long long ) 1000000;
   retval += ( long long ) ( buffer.tv_usec );
    
   return retval;
}
long long _darwin_get_virt_usec_times ( void  )

Definition at line 389 of file darwin-common.c.

{

   long long retval;

   struct tms buffer;

   times( &buffer );

   SUBDBG( "user %d system %d\n", ( int ) buffer.tms_utime,
                ( int ) buffer.tms_stime );
   retval = ( long long ) ( ( buffer.tms_utime + buffer.tms_stime ) * 
                1000000 / sysconf( _SC_CLK_TCK ));

   /* NOT CLOCKS_PER_SEC as in the headers! */
    
   return retval;
}
static pid_t mygettid ( void  ) [inline, static]

Definition at line 11 of file darwin-common.h.

{
  return pthread_self();
}

Here is the caller graph for this function:

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines