ARGOBOTS  1227c643f7a7f974f1f1778a9ffebd29d7dafecf
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
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_context * ABTI_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 (ABT_tool_thread_callback_fn cb_func, uint64_t event_mask_thread, void *user_arg)
 
static void ABTI_tool_event_task_update_callback (ABT_tool_task_callback_fn cb_func, uint64_t event_mask_task, 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

#define ABTI_TOOL_EVENT_TAG_DIRTY_BIT   ((uint64_t)1 << (uint64_t)(64 - 1))
#define ABTI_TOOL_EVENT_TAG_INC   ((uint64_t)1 << (uint64_t)(64 - 1 - ABTI_TOOL_EVENT_TAG_SIZE))
#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))
#define ABTI_TOOL_EVENT_TAG_SIZE
Definition: abti_tool.h:45

Definition at line 46 of file abti_tool.h.

Referenced by ABTI_tool_event_task_update_callback(), and ABTI_tool_event_thread_update_callback().

#define ABTI_TOOL_EVENT_TAG_SIZE   20 /* bits */

Definition at line 45 of file abti_tool.h.

#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)
#define ABTI_USE_TOOL_INTERFACE
Definition: abti_tool.h:304
static void ABTI_tool_event_thread_cancel_impl(ABTI_xstream *p_local_xstream, ABTI_thread *p_thread)
Definition: abti_tool.h:253

Definition at line 356 of file abti_tool.h.

Referenced by ABTD_ythread_cancel(), and xstream_schedule_task().

#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)
static void ABTI_tool_event_thread_create_impl(ABTI_local *p_local, ABTI_thread *p_thread, ABTI_thread *p_caller, ABTI_pool *p_pool)
Definition: abti_tool.h:193
#define ABTI_USE_TOOL_INTERFACE
Definition: abti_tool.h:304

Definition at line 309 of file abti_tool.h.

Referenced by task_create(), and ythread_create().

#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)
#define ABTI_USE_TOOL_INTERFACE
Definition: abti_tool.h:304
static void ABTI_tool_event_thread_finish_impl(ABTI_xstream *p_local_xstream, ABTI_thread *p_thread, ABTI_thread *p_parent)
Definition: abti_tool.h:243

Definition at line 348 of file abti_tool.h.

Referenced by ABTI_ythread_context_switch_to_child_internal(), ABTI_ythread_context_switch_to_parent_internal(), ABTI_ythread_context_switch_to_sibling_internal(), and xstream_schedule_task().

#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)
#define ABTI_USE_TOOL_INTERFACE
Definition: abti_tool.h:304
static void ABTI_tool_event_thread_free_impl(ABTI_local *p_local, ABTI_thread *p_thread, ABTI_thread *p_caller)
Definition: abti_tool.h:212

Definition at line 324 of file abti_tool.h.

Referenced by thread_free().

#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)
#define ABTI_USE_TOOL_INTERFACE
Definition: abti_tool.h:304
static void ABTI_tool_event_thread_join_impl(ABTI_local *p_local, ABTI_thread *p_thread, ABTI_thread *p_caller)
Definition: abti_tool.h:203

Definition at line 317 of file abti_tool.h.

Referenced by ABT_xstream_revive(), ABTI_xstream_free(), and thread_join().

#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)
#define ABTI_USE_TOOL_INTERFACE
Definition: abti_tool.h:304
static void ABTI_tool_event_thread_revive_impl(ABTI_local *p_local, ABTI_thread *p_thread, ABTI_thread *p_caller, ABTI_pool *p_pool)
Definition: abti_tool.h:221

Definition at line 331 of file abti_tool.h.

Referenced by ABTI_thread_revive().

#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)
#define ABTI_USE_TOOL_INTERFACE
Definition: abti_tool.h:304
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)
Definition: abti_tool.h:232

Definition at line 339 of file abti_tool.h.

Referenced by ABT_thread_yield_to(), ABTD_ythread_func_wrapper(), ABTI_ythread_context_switch_to_child_internal(), ABTI_ythread_context_switch_to_parent_internal(), ABTI_ythread_htable_switch_low(), mutex_unlock_se(), thread_join(), and xstream_schedule_task().

#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)
#define ABTI_USE_TOOL_INTERFACE
Definition: abti_tool.h:304
static void ABTI_tool_event_ythread_resume_impl(ABTI_local *p_local, ABTI_ythread *p_ythread, ABTI_thread *p_caller)
Definition: abti_tool.h:293

Definition at line 383 of file abti_tool.h.

Referenced by ABTI_ythread_htable_switch_low(), ABTI_ythread_set_ready(), mutex_unlock_se(), and ythread_terminate().

#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)
#define ABTI_USE_TOOL_INTERFACE
Definition: abti_tool.h:304
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)
Definition: abti_tool.h:282

Definition at line 373 of file abti_tool.h.

Referenced by ABTI_ythread_htable_switch_low(), and thread_join().

#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)
#define ABTI_USE_TOOL_INTERFACE
Definition: abti_tool.h:304
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)
Definition: abti_tool.h:261

Definition at line 363 of file abti_tool.h.

Referenced by ABT_thread_yield_to(), ABTI_ythread_context_switch_to_parent_internal(), and mutex_unlock_se().

#define ABTI_USE_TOOL_INTERFACE   1

Definition at line 304 of file abti_tool.h.

Function Documentation

static ABT_task ABTI_thread_get_handle ( ABTI_thread p_task)
inlinestatic
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().

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_task(), and ABT_tool_query_thread().

static void ABTI_tool_event_task_update_callback ( ABT_tool_task_callback_fn  cb_func,
uint64_t  event_mask_task,
void *  user_arg 
)
inlinestatic

Definition at line 100 of file abti_tool.h.

Referenced by ABT_finalize(), and ABT_tool_register_task_callback().

static void ABTI_tool_event_thread_cancel_impl ( ABTI_xstream p_local_xstream,
ABTI_thread p_thread 
)
inlinestatic

Definition at line 253 of file abti_tool.h.

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 193 of file abti_tool.h.

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 243 of file abti_tool.h.

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

Definition at line 212 of file abti_tool.h.

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
static void ABTI_tool_event_thread_join_impl ( ABTI_local p_local,
ABTI_thread p_thread,
ABTI_thread p_caller 
)
inlinestatic

Definition at line 203 of file abti_tool.h.

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 221 of file abti_tool.h.

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 232 of file abti_tool.h.

static void ABTI_tool_event_thread_update_callback ( ABT_tool_thread_callback_fn  cb_func,
uint64_t  event_mask_thread,
void *  user_arg 
)
inlinestatic

Definition at line 54 of file abti_tool.h.

Referenced by ABT_finalize(), and ABT_tool_register_thread_callback().

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

Definition at line 293 of file abti_tool.h.

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 282 of file abti_tool.h.

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 261 of file abti_tool.h.

static ABT_thread ABTI_ythread_get_handle ( ABTI_ythread p_thread)
inlinestatic