ARGOBOTS
1.1
|
Go to the source code of this file.
Macros | |
#define | ABTU_likely(cond) (cond) |
#define | ABTU_unlikely(cond) (cond) |
#define | ABTU_noreturn |
#define | ABTU_alignof(type) 16 /* 16 bytes would be a good guess. */ |
#define | ABTU_MAX_ALIGNMENT ABTU_max_size(ABTU_alignof(long double), ABTU_alignof(long long)) |
#define | ABTU_ret_err |
#define | ABTU_align_member_var(size) __attribute__((aligned(size))) |
#define | ABTU_no_sanitize_address |
Typedefs | |
typedef enum ABTU_MEM_LARGEPAGE_TYPE | ABTU_MEM_LARGEPAGE_TYPE |
Enumerations | |
enum | ABTU_MEM_LARGEPAGE_TYPE { ABTU_MEM_LARGEPAGE_MALLOC, ABTU_MEM_LARGEPAGE_MEMALIGN, ABTU_MEM_LARGEPAGE_MMAP, ABTU_MEM_LARGEPAGE_MMAP_HUGEPAGE } |
Functions | |
static int | ABTU_max_int (int a, int b) |
static int32_t | ABTU_max_int32 (int32_t a, int32_t b) |
static uint32_t | ABTU_max_uint32 (uint32_t a, uint32_t b) |
static int64_t | ABTU_max_int64 (int64_t a, int64_t b) |
static uint64_t | ABTU_max_uint64 (uint64_t a, uint64_t b) |
static size_t | ABTU_max_size (size_t a, size_t b) |
static int | ABTU_min_int (int a, int b) |
static int32_t | ABTU_min_int32 (int32_t a, int32_t b) |
static uint32_t | ABTU_min_uint32 (uint32_t a, uint32_t b) |
static int64_t | ABTU_min_int64 (int64_t a, int64_t b) |
static uint64_t | ABTU_min_uint64 (uint64_t a, uint64_t b) |
static size_t | ABTU_min_size (size_t a, size_t b) |
static uint32_t | ABTU_roundup_uint32 (uint32_t val, uint32_t multiple) |
static uint64_t | ABTU_roundup_uint64 (uint64_t val, uint64_t multiple) |
static size_t | ABTU_roundup_size (size_t val, size_t multiple) |
static ABTU_noreturn void | ABTU_unreachable (void) |
static ABTU_ret_err int | ABTU_memalign (size_t alignment, size_t size, void **p_ptr) |
static void | ABTU_free (void *ptr) |
static ABTU_ret_err int | ABTU_malloc (size_t size, void **p_ptr) |
static ABTU_ret_err int | ABTU_calloc (size_t num, size_t size, void **p_ptr) |
static ABTU_ret_err int | ABTU_realloc (size_t old_size, size_t new_size, void **p_ptr) |
int | ABTU_is_supported_largepage_type (size_t size, size_t alignment_hint, ABTU_MEM_LARGEPAGE_TYPE requested) |
ABTU_ret_err int | ABTU_alloc_largepage (size_t size, size_t alignment_hint, const ABTU_MEM_LARGEPAGE_TYPE *requested_types, int num_requested_types, ABTU_MEM_LARGEPAGE_TYPE *p_actual, void **p_ptr) |
void | ABTU_free_largepage (void *ptr, size_t size, ABTU_MEM_LARGEPAGE_TYPE type) |
ABTU_ret_err int | ABTU_atoi (const char *str, int *p_val, ABT_bool *p_overflow) |
ABTU_ret_err int | ABTU_atoui32 (const char *str, uint32_t *p_val, ABT_bool *p_overflow) |
ABTU_ret_err int | ABTU_atoui64 (const char *str, uint64_t *p_val, ABT_bool *p_overflow) |
ABTU_ret_err int | ABTU_atosz (const char *str, size_t *p_val, ABT_bool *p_overflow) |
#define ABTU_align_member_var | ( | size | ) | __attribute__((aligned(size))) |
#define ABTU_alignof | ( | type | ) | 16 /* 16 bytes would be a good guess. */ |
#define ABTU_MAX_ALIGNMENT ABTU_max_size(ABTU_alignof(long double), ABTU_alignof(long long)) |
typedef enum ABTU_MEM_LARGEPAGE_TYPE ABTU_MEM_LARGEPAGE_TYPE |
ABTU_ret_err int ABTU_alloc_largepage | ( | size_t | size, |
size_t | alignment_hint, | ||
const ABTU_MEM_LARGEPAGE_TYPE * | requested_types, | ||
int | num_requested_types, | ||
ABTU_MEM_LARGEPAGE_TYPE * | p_actual, | ||
void ** | p_ptr | ||
) |
Definition at line 90 of file largepage.c.
Referenced by ABTI_mem_pool_take_bucket().
ABTU_ret_err int ABTU_atoi | ( | const char * | str, |
int * | p_val, | ||
ABT_bool * | p_overflow | ||
) |
Definition at line 11 of file atoi.c.
Referenced by load_env_int().
ABTU_ret_err int ABTU_atosz | ( | const char * | str, |
size_t * | p_val, | ||
ABT_bool * | p_overflow | ||
) |
Definition at line 85 of file atoi.c.
Referenced by load_env_size().
ABTU_ret_err int ABTU_atoui32 | ( | const char * | str, |
uint32_t * | p_val, | ||
ABT_bool * | p_overflow | ||
) |
Definition at line 39 of file atoi.c.
Referenced by ABTU_atosz(), and load_env_uint32().
ABTU_ret_err int ABTU_atoui64 | ( | const char * | str, |
uint64_t * | p_val, | ||
ABT_bool * | p_overflow | ||
) |
Definition at line 65 of file atoi.c.
Referenced by ABTU_atosz(), and load_env_uint64().
|
inlinestatic |
Definition at line 272 of file abtu.h.
Referenced by ABT_sched_config_create(), ABTD_affinity_init(), ABTI_thread_get_mig_data(), list_calloc(), sched_config_add(), and ythread_create().
|
inlinestatic |
Definition at line 217 of file abtu.h.
Referenced by ABT_barrier_free(), ABT_cond_free(), ABT_eventual_create(), ABT_eventual_free(), ABT_future_create(), ABT_future_free(), ABT_key_free(), ABT_mutex_attr_free(), ABT_mutex_free(), ABT_rwlock_free(), ABT_sched_config_free(), ABT_thread_attr_free(), ABT_xstream_barrier_create(), ABT_xstream_barrier_free(), ABTD_affinity_cpuset_destroy(), ABTD_affinity_finalize(), ABTD_affinity_init(), ABTI_ktable_free(), ABTI_mem_free_desc(), ABTI_mem_free_nythread(), ABTI_mem_free_thread(), ABTI_pool_free(), ABTI_sched_create_basic(), ABTI_sched_free(), ABTI_thread_get_mig_data(), ABTU_free_largepage(), ABTU_is_supported_largepage_type(), finailze_library(), init_library(), list_free_all(), pool_create(), pool_free(), pool_init(), sched_config_free(), sched_create(), sched_free(), sched_init(), unit_finalize_hash_table(), xstream_create(), xstream_update_max_xstreams(), and ythread_create().
void ABTU_free_largepage | ( | void * | ptr, |
size_t | size, | ||
ABTU_MEM_LARGEPAGE_TYPE | type | ||
) |
Definition at line 132 of file largepage.c.
Referenced by ABTI_mem_pool_destroy_global_pool().
int ABTU_is_supported_largepage_type | ( | size_t | size, |
size_t | alignment_hint, | ||
ABTU_MEM_LARGEPAGE_TYPE | requested | ||
) |
Definition at line 59 of file largepage.c.
|
inlinestatic |
Definition at line 262 of file abtu.h.
Referenced by ABT_barrier_create(), ABT_cond_create(), ABT_eventual_create(), ABT_future_create(), ABT_key_create(), ABT_mutex_attr_create(), ABT_mutex_create(), ABT_mutex_create_with_attr(), ABT_mutex_get_attr(), ABT_rwlock_create(), ABT_thread_attr_create(), ABT_xstream_barrier_create(), ABTD_affinity_init(), ABTI_ktable_alloc_elem(), ABTI_ktable_create(), ABTI_mem_alloc_desc(), ABTI_mem_alloc_nythread_malloc(), ABTI_mem_alloc_ythread_malloc_desc_stack_impl(), ABTI_mem_alloc_ythread_mempool_desc(), ABTI_sched_create_basic(), ABTI_thread_attr_dup(), ABTU_alloc_largepage(), create_cpuset(), init_library(), pool_create(), pool_init(), sched_create(), sched_init(), unit_map_thread(), xstream_create(), and xstream_update_max_xstreams().
|
inlinestatic |
Definition at line 15 of file abtu.h.
Referenced by load_env_int().
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Definition at line 40 of file abtu.h.
Referenced by load_env_size().
|
inlinestatic |
Definition at line 25 of file abtu.h.
Referenced by load_env_uint32().
|
inlinestatic |
Definition at line 35 of file abtu.h.
Referenced by load_env_uint64().
|
inlinestatic |
Definition at line 205 of file abtu.h.
Referenced by ABTU_alloc_largepage(), and ABTU_is_supported_largepage_type().
|
inlinestatic |
Definition at line 45 of file abtu.h.
Referenced by load_env_int().
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Definition at line 70 of file abtu.h.
Referenced by load_env_size().
|
inlinestatic |
Definition at line 55 of file abtu.h.
Referenced by ABTD_env_init(), and load_env_uint32().
|
inlinestatic |
Definition at line 65 of file abtu.h.
Referenced by load_env_uint64().
|
inlinestatic |
Definition at line 283 of file abtu.h.
Referenced by ABTD_affinity_init(), and list_realloc().
|
inlinestatic |
Definition at line 95 of file abtu.h.
Referenced by ABTD_env_init(), ABTI_ktable_create(), and ABTI_mem_alloc_ythread_malloc_desc_stack_impl().
|
inlinestatic |
Definition at line 75 of file abtu.h.
Referenced by ABTD_env_init().
|
inlinestatic |
Definition at line 85 of file abtu.h.
Referenced by ABTI_mem_register_stack(), and ABTI_mem_unregister_stack().
|
inlinestatic |
Definition at line 126 of file abtu.h.
Referenced by ABT_xstream_exit(), ABTD_ucontext_wrapper(), ABTD_ythread_context_take(), ABTI_ythread_context_switch_to_parent_internal(), ABTI_ythread_context_switch_to_sibling_internal(), ABTI_ythread_exit(), ABTI_ythread_finish_context_to_parent(), ABTI_ythread_finish_context_to_sibling(), pool_get_access_num(), sched_config_type_size(), and ythread_terminate().