z_Linux_util.c File Reference

#include "kmp.h"
#include "kmp_wrapper_getpid.h"
#include "kmp_str.h"
#include "kmp_i18n.h"
#include "kmp_io.h"
#include <alloca.h>
#include <unistd.h>
#include <math.h>
#include <sys/time.h>
#include <sys/times.h>
#include <sys/resource.h>
#include <sys/syscall.h>
#include <dirent.h>
#include <ctype.h>
#include <fcntl.h>

Go to the source code of this file.

Data Structures

struct  kmp_sys_timer

Defines

#define TS2NS(timespec)   (((timespec).tv_sec * 1e9) + (timespec).tv_nsec)

Functions

static void __kmp_atfork_child (void)
static void __kmp_atfork_parent (void)
static void __kmp_atfork_prepare (void)
void __kmp_clear_system_time (void)
void __kmp_create_monitor (kmp_info_t *th)
void __kmp_create_worker (int gtid, kmp_info_t *th, size_t stack_size)
void __kmp_disable (int *old_state)
void __kmp_elapsed (double *t)
void __kmp_elapsed_tick (double *t)
void __kmp_enable (int new_state)
void __kmp_exit_thread (int exit_status)
static kmp_uint64 __kmp_get_frequency_from_proc ()
static int __kmp_get_xproc (void)
int __kmp_gtid_get_specific ()
void __kmp_gtid_set_specific (int gtid)
int __kmp_is_address_mapped (void *addr)
static void * __kmp_launch_monitor (void *thr)
static void * __kmp_launch_worker (void *thr)
double __kmp_read_cpu_time (void)
int __kmp_read_system_info (struct kmp_sys_info *info)
void __kmp_read_system_time (double *delta)
void __kmp_reap_monitor (kmp_info_t *th)
void __kmp_reap_worker (kmp_info_t *th)
void __kmp_register_atfork (void)
void __kmp_resume (int target_gtid, volatile kmp_uint *spin)
void __kmp_runtime_destroy (void)
void __kmp_runtime_initialize (void)
static kmp_int32 __kmp_set_stack_info (int gtid, kmp_info_t *th)
void __kmp_suspend (int th_gtid, volatile kmp_uint *spinner, kmp_uint checker)
void __kmp_suspend_initialize (void)
static void __kmp_suspend_initialize_thread (kmp_info_t *th)
void __kmp_suspend_uninitialize_thread (kmp_info_t *th)
void __kmp_terminate_thread (int gtid)
void __kmp_thread_sleep (int millis)
void __kmp_yield (int cond)

Variables

static int __kmp_fork_count = 0
static int __kmp_init_runtime = FALSE
static pthread_condattr_t __kmp_suspend_cond_attr
static pthread_mutexattr_t __kmp_suspend_mutex_attr
static struct kmp_sys_timer __kmp_sys_timer_data
static kmp_cond_align_t __kmp_wait_cv
static kmp_mutex_align_t __kmp_wait_mx

Define Documentation

#define TS2NS ( timespec   )     (((timespec).tv_sec * 1e9) + (timespec).tv_nsec)

Definition at line 94 of file z_Linux_util.c.

Referenced by __kmp_read_system_time().


Function Documentation

static void __kmp_atfork_child ( void   )  [static]
static void __kmp_atfork_parent ( void   )  [static]

Definition at line 1514 of file z_Linux_util.c.

Referenced by __kmp_register_atfork().

static void __kmp_atfork_prepare ( void   )  [static]

Definition at line 1508 of file z_Linux_util.c.

Referenced by __kmp_register_atfork().

void __kmp_clear_system_time ( void   ) 
void __kmp_create_monitor ( kmp_info_t th  ) 
void __kmp_create_worker ( int  gtid,
kmp_info_t th,
size_t  stack_size 
)
void __kmp_disable ( int *  old_state  ) 

Definition at line 1495 of file z_Linux_util.c.

References KMP_CHECK_SYSFAIL.

void __kmp_elapsed ( double *  t  ) 

Definition at line 2187 of file z_Linux_util.c.

References KMP_CHECK_SYSFAIL_ERRNO, NSEC_PER_SEC, and USEC_PER_SEC.

void __kmp_elapsed_tick ( double *  t  ) 

Definition at line 2209 of file z_Linux_util.c.

void __kmp_enable ( int  new_state  ) 

Definition at line 1484 of file z_Linux_util.c.

References KMP_CHECK_SYSFAIL, and KMP_DEBUG_ASSERT.

void __kmp_exit_thread ( int  exit_status  ) 

Definition at line 1227 of file z_Linux_util.c.

static kmp_uint64 __kmp_get_frequency_from_proc (  )  [static]

Definition at line 2035 of file z_Linux_util.c.

References KA_TRACE.

Referenced by __kmp_runtime_initialize().

static int __kmp_get_xproc ( void   )  [static]

Definition at line 1993 of file z_Linux_util.c.

References KMP_INFORM, and KMP_WARNING.

Referenced by __kmp_runtime_initialize().

int __kmp_gtid_get_specific ( void   ) 
void __kmp_gtid_set_specific ( int  gtid  ) 
int __kmp_is_address_mapped ( void *  addr  ) 

Definition at line 2219 of file z_Linux_util.c.

References __kmp_str_format(), KMP_ASSERT, and KMP_INTERNAL_FREE.

static void* __kmp_launch_monitor ( void *  thr  )  [static]
static void* __kmp_launch_worker ( void *  thr  )  [static]
double __kmp_read_cpu_time ( void   ) 

Definition at line 1899 of file z_Linux_util.c.

int __kmp_read_system_info ( struct kmp_sys_info info  ) 
void __kmp_read_system_time ( double *  delta  ) 
void __kmp_reap_monitor ( kmp_info_t th  ) 
void __kmp_reap_worker ( kmp_info_t th  ) 

Definition at line 1286 of file z_Linux_util.c.

References __kmp_msg(), __kmp_msg_null, KA_TRACE, KMP_ERR, KMP_MB, kmp_ms_fatal, and KMP_MSG.

void __kmp_register_atfork ( void   ) 
void __kmp_resume ( int  target_gtid,
volatile kmp_uint spin 
)
void __kmp_runtime_destroy ( void   ) 
void __kmp_runtime_initialize ( void   ) 
static kmp_int32 __kmp_set_stack_info ( int  gtid,
kmp_info_t th 
) [static]
void __kmp_suspend ( int  th_gtid,
volatile kmp_uint spinner,
kmp_uint  checker 
)
void __kmp_suspend_initialize ( void   ) 
static void __kmp_suspend_initialize_thread ( kmp_info_t th  )  [static]
void __kmp_suspend_uninitialize_thread ( kmp_info_t th  ) 

Definition at line 1620 of file z_Linux_util.c.

References __kmp_fork_count, KMP_DEBUG_ASSERT, and KMP_SYSFAIL.

void __kmp_terminate_thread ( int  gtid  ) 
void __kmp_thread_sleep ( int  millis  ) 

Definition at line 2180 of file z_Linux_util.c.

void __kmp_yield ( int  cond  ) 

Definition at line 1856 of file z_Linux_util.c.

References __kmp_yielding_on.


Variable Documentation

int __kmp_fork_count = 0 [static]
int __kmp_init_runtime = FALSE [static]
pthread_condattr_t __kmp_suspend_cond_attr [static]

Definition at line 108 of file z_Linux_util.c.

Referenced by __kmp_suspend_initialize(), and __kmp_suspend_initialize_thread().

pthread_mutexattr_t __kmp_suspend_mutex_attr [static]

Definition at line 109 of file z_Linux_util.c.

Referenced by __kmp_suspend_initialize(), and __kmp_suspend_initialize_thread().

Definition at line 96 of file z_Linux_util.c.

Referenced by __kmp_clear_system_time(), and __kmp_read_system_time().

kmp_cond_align_t __kmp_wait_cv [static]
kmp_mutex_align_t __kmp_wait_mx [static]

Generated on 25 Aug 2013 for libomp_oss by  doxygen 1.6.1