kmp_error.c File Reference

#include "kmp.h"
#include "kmp_i18n.h"
#include "kmp_str.h"
#include "kmp_error.h"

Go to the source code of this file.

Defines

#define get_src(ident)   ( (ident) == NULL ? NULL : (ident)->psource )
#define MIN_STACK   100
#define POP_MSG(p)
#define PUSH_MSG(ct, ident)   "\tpushing on stack: %s (%s)\n", cons_text_c[ (ct) ], get_src( (ident) )

Functions

struct cons_header__kmp_allocate_cons_stack (int gtid)
void __kmp_check_barrier (int gtid, enum cons_type ct, ident_t const *ident)
static void __kmp_check_null_func (void)
void __kmp_check_sync (int gtid, enum cons_type ct, ident_t const *ident, kmp_user_lock_p lck)
void __kmp_check_workshare (int gtid, enum cons_type ct, ident_t const *ident)
void __kmp_error_construct (kmp_i18n_id_t id, enum cons_type ct, ident_t const *ident)
void __kmp_error_construct2 (kmp_i18n_id_t id, enum cons_type ct, ident_t const *ident, struct cons_data const *cons)
static void __kmp_expand_cons_stack (int gtid, struct cons_header *p)
void __kmp_free_cons_stack (void *ptr)
void __kmp_pop_parallel (int gtid, ident_t const *ident)
void __kmp_pop_sync (int gtid, enum cons_type ct, ident_t const *ident)
enum cons_type __kmp_pop_workshare (int gtid, enum cons_type ct, ident_t const *ident)
static char const * __kmp_pragma (enum cons_type ct, ident_t const *ident)
void __kmp_push_parallel (int gtid, ident_t const *ident)
void __kmp_push_sync (int gtid, enum cons_type ct, ident_t const *ident, kmp_user_lock_p lck)
void __kmp_push_workshare (int gtid, enum cons_type ct, ident_t const *ident)
static void dump_cons_stack (int gtid, struct cons_header *p)

Variables

static char const * cons_text_c []
static int const cons_text_c_num = sizeof( cons_text_c ) / sizeof( char const * )
static char const * cons_text_fort []
static int const cons_text_fort_num = sizeof( cons_text_fort ) / sizeof( char const * )

Define Documentation

#define get_src ( ident   )     ( (ident) == NULL ? NULL : (ident)->psource )

Definition at line 95 of file kmp_error.c.

Referenced by dump_cons_stack().

#define MIN_STACK   100

Definition at line 55 of file kmp_error.c.

Referenced by __kmp_allocate_cons_stack().

#define POP_MSG (  ) 
Value:
"\tpopping off stack: %s (%s)\n",                 \
    cons_text_c[ (p)->stack_data[ tos ].type ],       \
    get_src( (p)->stack_data[ tos ].ident )

Definition at line 99 of file kmp_error.c.

Referenced by __kmp_pop_parallel(), __kmp_pop_sync(), and __kmp_pop_workshare().

#define PUSH_MSG ( ct,
ident   )     "\tpushing on stack: %s (%s)\n", cons_text_c[ (ct) ], get_src( (ident) )

Definition at line 97 of file kmp_error.c.

Referenced by __kmp_push_parallel(), __kmp_push_sync(), and __kmp_push_workshare().


Function Documentation

struct cons_header* __kmp_allocate_cons_stack ( int  gtid  )  [read]
void __kmp_check_barrier ( int  gtid,
enum cons_type  ct,
ident_t const *  ident 
)
static void __kmp_check_null_func ( void   )  [static]
void __kmp_check_sync ( int  gtid,
enum cons_type  ct,
ident_t const *  ident,
kmp_user_lock_p  lck 
)
void __kmp_check_workshare ( int  gtid,
enum cons_type  ct,
ident_t const *  ident 
)
void __kmp_error_construct ( kmp_i18n_id_t  id,
enum cons_type  ct,
ident_t const *  ident 
)
void __kmp_error_construct2 ( kmp_i18n_id_t  id,
enum cons_type  ct,
ident_t const *  ident,
struct cons_data const *  cons 
)
static void __kmp_expand_cons_stack ( int  gtid,
struct cons_header p 
) [static]
void __kmp_free_cons_stack ( void *  ptr  ) 

Definition at line 228 of file kmp_error.c.

References __kmp_free, and cons_header::stack_data.

Referenced by __kmp_reap_thread().

void __kmp_pop_parallel ( int  gtid,
ident_t const *  ident 
)
void __kmp_pop_sync ( int  gtid,
enum cons_type  ct,
ident_t const *  ident 
)
enum cons_type __kmp_pop_workshare ( int  gtid,
enum cons_type  ct,
ident_t const *  ident 
)
static char const* __kmp_pragma ( enum cons_type  ct,
ident_t const *  ident 
) [static]
void __kmp_push_parallel ( int  gtid,
ident_t const *  ident 
)
void __kmp_push_sync ( int  gtid,
enum cons_type  ct,
ident_t const *  ident,
kmp_user_lock_p  lck 
)
void __kmp_push_workshare ( int  gtid,
enum cons_type  ct,
ident_t const *  ident 
)
static void dump_cons_stack ( int  gtid,
struct cons_header p 
) [static]

Variable Documentation

char const* cons_text_c[] [static]
Initial value:
 {
    "(none)",
    "\"parallel\"",
    "work-sharing",             
    "\"ordered\" work-sharing", 
    "\"sections\"",
    "work-sharing",             
    "\"taskq\"",
    "\"taskq\"",
    "\"taskq ordered\"",
    "\"critical\"",
    "\"ordered\"",              
    "\"ordered\"",              
    "\"ordered\"",              
    "\"master\"",
    "\"reduce\"",
    "\"barrier\""
}

Definition at line 76 of file kmp_error.c.

Referenced by __kmp_pragma(), and dump_cons_stack().

int const cons_text_c_num = sizeof( cons_text_c ) / sizeof( char const * ) [static]

Definition at line 105 of file kmp_error.c.

char const* cons_text_fort[] [static]
Initial value:
 {
    "(none)",
    "PARALLEL",
    "work-sharing",             
    "ORDERED work-sharing",     
    "SECTIONS",
    "work-sharing",             
    "TASKQ",
    "TASKQ",
    "TASKQ ORDERED",
    "CRITICAL",
    "ORDERED",                  
    "ORDERED",                  
    "ORDERED",                  
    "MASTER",
    "REDUCE",
    "BARRIER"
}

Definition at line 57 of file kmp_error.c.

int const cons_text_fort_num = sizeof( cons_text_fort ) / sizeof( char const * ) [static]

Definition at line 104 of file kmp_error.c.


Generated on 25 Aug 2013 for libomp_oss by  doxygen 1.6.1