ARGOBOTS  1.1
Macros | Functions
abti_tool.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ABTI_TOOL_EVENT_TAG_SIZE   20 /* bits */
 
#define ABTI_TOOL_EVENT_TAG_MASK
 
#define ABTI_TOOL_EVENT_TAG_INC   ((uint64_t)1 << (uint64_t)(64 - 1 - ABTI_TOOL_EVENT_TAG_SIZE))
 
#define ABTI_TOOL_EVENT_TAG_DIRTY_BIT   ((uint64_t)1 << (uint64_t)(64 - 1))
 
#define ABTI_USE_TOOL_INTERFACE   1
 
#define ABTI_tool_event_thread_create(p_local, p_thread, p_caller, p_pool)
 
#define ABTI_tool_event_thread_join(p_local, p_thread, p_caller)
 
#define ABTI_tool_event_thread_free(p_local, p_thread, p_caller)
 
#define ABTI_tool_event_thread_revive(p_local, p_thread, p_caller, p_pool)
 
#define ABTI_tool_event_thread_run(p_local_xstream, p_thread, p_prev, p_parent)
 
#define ABTI_tool_event_thread_finish(p_local_xstream, p_thread, p_parent)
 
#define ABTI_tool_event_thread_cancel(p_local_xstream, p_thread)
 
#define ABTI_tool_event_ythread_yield(p_local_xstream, p_ythread, p_parent, sync_event_type, p_sync)
 
#define ABTI_tool_event_ythread_suspend(p_local_xstream, p_ythread, p_parent, sync_event_type, p_sync)
 
#define ABTI_tool_event_ythread_resume(p_local, p_ythread, p_caller)
 

Functions

static ABT_thread ABTI_ythread_get_handle (ABTI_ythread *p_thread)
 
static ABT_task ABTI_thread_get_handle (ABTI_thread *p_task)
 
static ABTI_tool_contextABTI_tool_context_get_ptr (ABT_tool_context tctx)
 
static ABT_tool_context ABTI_tool_context_get_handle (ABTI_tool_context *p_tctx)
 
static void ABTI_tool_event_thread_update_callback (ABTI_global *p_global, ABT_tool_thread_callback_fn cb_func, uint64_t event_mask, void *user_arg)
 
static void ABTI_tool_event_thread_impl (ABTI_local *p_local, uint64_t event_code, ABTI_thread *p_thread, ABTI_thread *p_caller, ABTI_pool *p_pool, ABTI_thread *p_parent, ABT_sync_event_type sync_event_type, void *p_sync_object)
 
static void ABTI_tool_event_thread_create_impl (ABTI_local *p_local, ABTI_thread *p_thread, ABTI_thread *p_caller, ABTI_pool *p_pool)
 
static void ABTI_tool_event_thread_join_impl (ABTI_local *p_local, ABTI_thread *p_thread, ABTI_thread *p_caller)
 
static void ABTI_tool_event_thread_free_impl (ABTI_local *p_local, ABTI_thread *p_thread, ABTI_thread *p_caller)
 
static void ABTI_tool_event_thread_revive_impl (ABTI_local *p_local, ABTI_thread *p_thread, ABTI_thread *p_caller, ABTI_pool *p_pool)
 
static void ABTI_tool_event_thread_run_impl (ABTI_xstream *p_local_xstream, ABTI_thread *p_thread, ABTI_thread *p_prev, ABTI_thread *p_parent)
 
static void ABTI_tool_event_thread_finish_impl (ABTI_xstream *p_local_xstream, ABTI_thread *p_thread, ABTI_thread *p_parent)
 
static void ABTI_tool_event_thread_cancel_impl (ABTI_xstream *p_local_xstream, ABTI_thread *p_thread)
 
static void ABTI_tool_event_ythread_yield_impl (ABTI_xstream *p_local_xstream, ABTI_ythread *p_ythread, ABTI_thread *p_parent, ABT_sync_event_type sync_event_type, void *p_sync)
 
static void ABTI_tool_event_ythread_suspend_impl (ABTI_xstream *p_local_xstream, ABTI_ythread *p_ythread, ABTI_thread *p_parent, ABT_sync_event_type sync_event_type, void *p_sync)
 
static void ABTI_tool_event_ythread_resume_impl (ABTI_local *p_local, ABTI_ythread *p_ythread, ABTI_thread *p_caller)
 

Macro Definition Documentation

◆ ABTI_TOOL_EVENT_TAG_DIRTY_BIT

#define ABTI_TOOL_EVENT_TAG_DIRTY_BIT   ((uint64_t)1 << (uint64_t)(64 - 1))

Definition at line 51 of file abti_tool.h.

◆ ABTI_TOOL_EVENT_TAG_INC

#define ABTI_TOOL_EVENT_TAG_INC   ((uint64_t)1 << (uint64_t)(64 - 1 - ABTI_TOOL_EVENT_TAG_SIZE))

Definition at line 49 of file abti_tool.h.

◆ ABTI_TOOL_EVENT_TAG_MASK

#define ABTI_TOOL_EVENT_TAG_MASK
Value:
((((uint64_t)1 << (uint64_t)ABTI_TOOL_EVENT_TAG_SIZE) - 1) \
<< (uint64_t)(64 - 1 - ABTI_TOOL_EVENT_TAG_SIZE))

Definition at line 46 of file abti_tool.h.

◆ ABTI_TOOL_EVENT_TAG_SIZE

#define ABTI_TOOL_EVENT_TAG_SIZE   20 /* bits */

Definition at line 45 of file abti_tool.h.

◆ ABTI_tool_event_thread_cancel

#define ABTI_tool_event_thread_cancel (   p_local_xstream,
  p_thread 
)
Value:
do { \
ABTI_tool_event_thread_cancel_impl(p_local_xstream, p_thread); \
} \
} while (0)

Definition at line 305 of file abti_tool.h.

◆ ABTI_tool_event_thread_create

#define ABTI_tool_event_thread_create (   p_local,
  p_thread,
  p_caller,
  p_pool 
)
Value:
do { \
ABTI_tool_event_thread_create_impl(p_local, p_thread, p_caller, \
p_pool); \
} \
} while (0)

Definition at line 258 of file abti_tool.h.

◆ ABTI_tool_event_thread_finish

#define ABTI_tool_event_thread_finish (   p_local_xstream,
  p_thread,
  p_parent 
)
Value:
do { \
ABTI_tool_event_thread_finish_impl(p_local_xstream, p_thread, \
p_parent); \
} \
} while (0)

Definition at line 297 of file abti_tool.h.

◆ ABTI_tool_event_thread_free

#define ABTI_tool_event_thread_free (   p_local,
  p_thread,
  p_caller 
)
Value:
do { \
ABTI_tool_event_thread_free_impl(p_local, p_thread, p_caller); \
} \
} while (0)

Definition at line 273 of file abti_tool.h.

◆ ABTI_tool_event_thread_join

#define ABTI_tool_event_thread_join (   p_local,
  p_thread,
  p_caller 
)
Value:
do { \
ABTI_tool_event_thread_join_impl(p_local, p_thread, p_caller); \
} \
} while (0)

Definition at line 266 of file abti_tool.h.

◆ ABTI_tool_event_thread_revive

#define ABTI_tool_event_thread_revive (   p_local,
  p_thread,
  p_caller,
  p_pool 
)
Value:
do { \
ABTI_tool_event_thread_revive_impl(p_local, p_thread, p_caller, \
p_pool); \
} \
} while (0)

Definition at line 280 of file abti_tool.h.

◆ ABTI_tool_event_thread_run

#define ABTI_tool_event_thread_run (   p_local_xstream,
  p_thread,
  p_prev,
  p_parent 
)
Value:
do { \
ABTI_tool_event_thread_run_impl(p_local_xstream, p_thread, p_prev, \
p_parent); \
} \
} while (0)

Definition at line 288 of file abti_tool.h.

◆ ABTI_tool_event_ythread_resume

#define ABTI_tool_event_ythread_resume (   p_local,
  p_ythread,
  p_caller 
)
Value:
do { \
ABTI_tool_event_ythread_resume_impl(p_local, p_ythread, p_caller); \
} \
} while (0)

Definition at line 332 of file abti_tool.h.

◆ ABTI_tool_event_ythread_suspend

#define ABTI_tool_event_ythread_suspend (   p_local_xstream,
  p_ythread,
  p_parent,
  sync_event_type,
  p_sync 
)
Value:
do { \
ABTI_tool_event_ythread_suspend_impl(p_local_xstream, p_ythread, \
p_parent, sync_event_type, \
p_sync); \
} \
} while (0)

Definition at line 322 of file abti_tool.h.

◆ ABTI_tool_event_ythread_yield

#define ABTI_tool_event_ythread_yield (   p_local_xstream,
  p_ythread,
  p_parent,
  sync_event_type,
  p_sync 
)
Value:
do { \
ABTI_tool_event_ythread_yield_impl(p_local_xstream, p_ythread, \
p_parent, sync_event_type, \
p_sync); \
} \
} while (0)

Definition at line 312 of file abti_tool.h.

◆ ABTI_USE_TOOL_INTERFACE

#define ABTI_USE_TOOL_INTERFACE   1

Definition at line 253 of file abti_tool.h.

Function Documentation

◆ ABTI_thread_get_handle()

static ABT_task ABTI_thread_get_handle ( ABTI_thread p_task)
inlinestatic

◆ ABTI_tool_context_get_handle()

static ABT_tool_context ABTI_tool_context_get_handle ( ABTI_tool_context p_tctx)
inlinestatic

Definition at line 30 of file abti_tool.h.

Referenced by ABTI_tool_event_thread_impl().

◆ ABTI_tool_context_get_ptr()

static ABTI_tool_context* ABTI_tool_context_get_ptr ( ABT_tool_context  tctx)
inlinestatic

Definition at line 14 of file abti_tool.h.

Referenced by ABT_tool_query_thread().

◆ ABTI_tool_event_thread_cancel_impl()

static void ABTI_tool_event_thread_cancel_impl ( ABTI_xstream p_local_xstream,
ABTI_thread p_thread 
)
inlinestatic

Definition at line 202 of file abti_tool.h.

◆ ABTI_tool_event_thread_create_impl()

static void ABTI_tool_event_thread_create_impl ( ABTI_local p_local,
ABTI_thread p_thread,
ABTI_thread p_caller,
ABTI_pool p_pool 
)
inlinestatic

Definition at line 142 of file abti_tool.h.

◆ ABTI_tool_event_thread_finish_impl()

static void ABTI_tool_event_thread_finish_impl ( ABTI_xstream p_local_xstream,
ABTI_thread p_thread,
ABTI_thread p_parent 
)
inlinestatic

Definition at line 192 of file abti_tool.h.

◆ ABTI_tool_event_thread_free_impl()

static void ABTI_tool_event_thread_free_impl ( ABTI_local p_local,
ABTI_thread p_thread,
ABTI_thread p_caller 
)
inlinestatic

Definition at line 161 of file abti_tool.h.

◆ ABTI_tool_event_thread_impl()

static void ABTI_tool_event_thread_impl ( ABTI_local p_local,
uint64_t  event_code,
ABTI_thread p_thread,
ABTI_thread p_caller,
ABTI_pool p_pool,
ABTI_thread p_parent,
ABT_sync_event_type  sync_event_type,
void *  p_sync_object 
)
inlinestatic

◆ ABTI_tool_event_thread_join_impl()

static void ABTI_tool_event_thread_join_impl ( ABTI_local p_local,
ABTI_thread p_thread,
ABTI_thread p_caller 
)
inlinestatic

Definition at line 152 of file abti_tool.h.

◆ ABTI_tool_event_thread_revive_impl()

static void ABTI_tool_event_thread_revive_impl ( ABTI_local p_local,
ABTI_thread p_thread,
ABTI_thread p_caller,
ABTI_pool p_pool 
)
inlinestatic

Definition at line 170 of file abti_tool.h.

◆ ABTI_tool_event_thread_run_impl()

static void ABTI_tool_event_thread_run_impl ( ABTI_xstream p_local_xstream,
ABTI_thread p_thread,
ABTI_thread p_prev,
ABTI_thread p_parent 
)
inlinestatic

Definition at line 181 of file abti_tool.h.

◆ ABTI_tool_event_thread_update_callback()

static void ABTI_tool_event_thread_update_callback ( ABTI_global p_global,
ABT_tool_thread_callback_fn  cb_func,
uint64_t  event_mask,
void *  user_arg 
)
inlinestatic

Definition at line 54 of file abti_tool.h.

Referenced by ABT_tool_register_thread_callback(), and finailze_library().

◆ ABTI_tool_event_ythread_resume_impl()

static void ABTI_tool_event_ythread_resume_impl ( ABTI_local p_local,
ABTI_ythread p_ythread,
ABTI_thread p_caller 
)
inlinestatic

Definition at line 242 of file abti_tool.h.

◆ ABTI_tool_event_ythread_suspend_impl()

static void ABTI_tool_event_ythread_suspend_impl ( ABTI_xstream p_local_xstream,
ABTI_ythread p_ythread,
ABTI_thread p_parent,
ABT_sync_event_type  sync_event_type,
void *  p_sync 
)
inlinestatic

Definition at line 231 of file abti_tool.h.

◆ ABTI_tool_event_ythread_yield_impl()

static void ABTI_tool_event_ythread_yield_impl ( ABTI_xstream p_local_xstream,
ABTI_ythread p_ythread,
ABTI_thread p_parent,
ABT_sync_event_type  sync_event_type,
void *  p_sync 
)
inlinestatic

Definition at line 210 of file abti_tool.h.

◆ ABTI_ythread_get_handle()

static ABT_thread ABTI_ythread_get_handle ( ABTI_ythread p_thread)
inlinestatic
ABTI_USE_TOOL_INTERFACE
#define ABTI_USE_TOOL_INTERFACE
Definition: abti_tool.h:253
ABTI_TOOL_EVENT_TAG_SIZE
#define ABTI_TOOL_EVENT_TAG_SIZE
Definition: abti_tool.h:45