ARGOBOTS  4dc37e16e1b227a480715ab67dae1dcfb4d2d4e0
Data Structures | Macros | Functions | Variables
info.c File Reference
#include "abti.h"
Include dependency graph for info.c:

Go to the source code of this file.

Data Structures

struct  info_print_unit_arg_t
 
struct  info_pool_set_t
 

Macros

#define PRINT_STACK_FLAG_UNSET   0
 
#define PRINT_STACK_FLAG_INITIALIZE   1
 
#define PRINT_STACK_FLAG_WAIT   2
 
#define PRINT_STACK_FLAG_FINALIZE   3
 

Functions

static ABTU_ret_err int info_print_thread_stacks_in_pool (ABTI_global *p_global, FILE *fp, ABTI_pool *p_pool)
 
static void info_trigger_print_all_thread_stacks (FILE *fp, double timeout, void(*cb_func)(ABT_bool, void *), void *arg)
 
int ABT_info_query_config (ABT_info_query_kind query_kind, void *val)
 Retrieve the configuration information. More...
 
int ABT_info_print_config (FILE *fp)
 Print the runtime information of Argobots. More...
 
int ABT_info_print_all_xstreams (FILE *fp)
 Print the information of all execution streams. More...
 
int ABT_info_print_xstream (FILE *fp, ABT_xstream xstream)
 Print the information of an execution stream. More...
 
int ABT_info_print_sched (FILE *fp, ABT_sched sched)
 Print the information of a scheduler. More...
 
int ABT_info_print_pool (FILE *fp, ABT_pool pool)
 Print the information of a pool. More...
 
int ABT_info_print_thread (FILE *fp, ABT_thread thread)
 Print the information of a work unit. More...
 
int ABT_info_print_thread_attr (FILE *fp, ABT_thread_attr attr)
 Print the information of a ULT attribute. More...
 
int ABT_info_print_task (FILE *fp, ABT_task task)
 Print the information of a work unit. More...
 
int ABT_info_print_thread_stack (FILE *fp, ABT_thread thread)
 Print stack of a work unit. More...
 
int ABT_info_print_thread_stacks_in_pool (FILE *fp, ABT_pool pool)
 Print stacks of all work units in a pool. More...
 
int ABT_info_trigger_print_all_thread_stacks (FILE *fp, double timeout, void(*cb_func)(ABT_bool, void *), void *arg)
 Print stacks of work units in pools associated with all the main schedulers. More...
 
static ABTU_ret_err int print_all_thread_stacks (ABTI_global *p_global, FILE *fp)
 
static void info_print_unit (void *arg, ABT_thread thread)
 
static ABTU_ret_err int info_initialize_pool_set (struct info_pool_set_t *p_set)
 
static void info_finalize_pool_set (struct info_pool_set_t *p_set)
 
static ABTU_ret_err int info_add_pool_set (ABT_pool pool, struct info_pool_set_t *p_set)
 

Variables

static ABTD_atomic_int print_stack_flag
 
static FILE * print_stack_fp = NULL
 
static double print_stack_timeout = 0.0
 
static void(* print_cb_func )(ABT_bool, void *) = NULL
 
static void * print_arg = NULL
 
static ABTD_atomic_int print_stack_barrier
 

Macro Definition Documentation

◆ PRINT_STACK_FLAG_FINALIZE

#define PRINT_STACK_FLAG_FINALIZE   3

Definition at line 1028 of file info.c.

◆ PRINT_STACK_FLAG_INITIALIZE

#define PRINT_STACK_FLAG_INITIALIZE   1

Definition at line 1026 of file info.c.

◆ PRINT_STACK_FLAG_UNSET

#define PRINT_STACK_FLAG_UNSET   0

Definition at line 1025 of file info.c.

◆ PRINT_STACK_FLAG_WAIT

#define PRINT_STACK_FLAG_WAIT   2

Definition at line 1027 of file info.c.

Function Documentation

◆ info_add_pool_set()

static ABTU_ret_err int info_add_pool_set ( ABT_pool  pool,
struct info_pool_set_t p_set 
)
inlinestatic

Definition at line 1329 of file info.c.

◆ info_finalize_pool_set()

static void info_finalize_pool_set ( struct info_pool_set_t p_set)
inlinestatic

Definition at line 1324 of file info.c.

◆ info_initialize_pool_set()

static ABTU_ret_err int info_initialize_pool_set ( struct info_pool_set_t p_set)
inlinestatic

Definition at line 1313 of file info.c.

◆ info_print_thread_stacks_in_pool()

static ABTU_ret_err int info_print_thread_stacks_in_pool ( ABTI_global *  p_global,
FILE *  fp,
ABTI_pool *  p_pool 
)
static

Definition at line 1290 of file info.c.

◆ info_print_unit()

static void info_print_unit ( void *  arg,
ABT_thread  thread 
)
static

Definition at line 1265 of file info.c.

◆ info_trigger_print_all_thread_stacks()

static void info_trigger_print_all_thread_stacks ( FILE *  fp,
double  timeout,
void(*)(ABT_bool, void *)  cb_func,
void *  arg 
)
static

Definition at line 1350 of file info.c.

Referenced by ABT_info_trigger_print_all_thread_stacks().

◆ print_all_thread_stacks()

static ABTU_ret_err int print_all_thread_stacks ( ABTI_global *  p_global,
FILE *  fp 
)
static

Definition at line 1374 of file info.c.

Variable Documentation

◆ print_arg

void* print_arg = NULL
static

Definition at line 1035 of file info.c.

◆ print_cb_func

void(* print_cb_func) (ABT_bool, void *) = NULL
static

Definition at line 1034 of file info.c.

◆ print_stack_barrier

ABTD_atomic_int print_stack_barrier
static
Initial value:
=
ABTD_ATOMIC_INT_STATIC_INITIALIZER(0)

Definition at line 1036 of file info.c.

◆ print_stack_flag

ABTD_atomic_int print_stack_flag
static
Initial value:
=
ABTD_ATOMIC_INT_STATIC_INITIALIZER(PRINT_STACK_FLAG_UNSET)

Definition at line 1030 of file info.c.

◆ print_stack_fp

FILE* print_stack_fp = NULL
static

Definition at line 1032 of file info.c.

◆ print_stack_timeout

double print_stack_timeout = 0.0
static

Definition at line 1033 of file info.c.

PRINT_STACK_FLAG_UNSET
#define PRINT_STACK_FLAG_UNSET
Definition: info.c:1025