ARGOBOTS
dce6e727ffc4ca5b3ffc04cb9517c6689be51ec5
|
Go to the source code of this file.
Data Structures | |
struct | ABTU_hashtable_element |
struct | ABTU_hashtable |
Macros | |
#define | ABTU_likely(cond) __builtin_expect(!!(cond), 1) |
#define | ABTU_unlikely(cond) __builtin_expect(!!(cond), 0) |
#define | ABTU_noreturn __attribute__((noreturn)) |
#define | ABTU_unreachable() __builtin_unreachable() |
#define | ABTU_alignof(type) (__alignof__(type)) |
#define | ABTU_MAX_ALIGNMENT ABTU_max_size(ABTU_alignof(long double), ABTU_alignof(long long)) |
#define | ABTU_ret_err __attribute__((warn_unused_result)) |
#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 |
typedef struct ABTU_hashtable_element | ABTU_hashtable_element |
typedef struct ABTU_hashtable | ABTU_hashtable |
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 void * | ABTU_roundup_ptr (void *ptr, size_t multiple) |
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_mprotect (void *addr, size_t size, ABT_bool protect) |
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) |
ABTU_ret_err int | ABTU_hashtable_create (size_t num_entries, size_t data_size, ABTU_hashtable **pp_hashtable) |
void | ABTU_hashtable_free (ABTU_hashtable *p_hashtable) |
void | ABTU_hashtable_get (const ABTU_hashtable *p_hashtable, int key, void *data, int *found) |
ABTU_ret_err int | ABTU_hashtable_set (ABTU_hashtable *p_hashtable, int key, const void *data, int *overwritten) |
void | ABTU_hashtable_delete (ABTU_hashtable *p_hashtable, int key, int *deleted) |
#define ABTU_align_member_var | ( | size | ) | __attribute__((aligned(size))) |
#define ABTU_MAX_ALIGNMENT ABTU_max_size(ABTU_alignof(long double), ABTU_alignof(long long)) |
#define ABTU_noreturn __attribute__((noreturn)) |
#define ABTU_ret_err __attribute__((warn_unused_result)) |
typedef struct ABTU_hashtable ABTU_hashtable |
typedef struct ABTU_hashtable_element ABTU_hashtable_element |
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.
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 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 load_env_uint64().
|
inlinestatic |
Definition at line 244 of file abtu.h.
Referenced by ABTU_hashtable_create(), and list_calloc().
|
inlinestatic |
Definition at line 228 of file abtu.h.
Referenced by ABTU_free_largepage(), ABTU_hashtable_delete(), ABTU_hashtable_free(), ABTU_is_supported_largepage_type(), and list_free_all().
void ABTU_free_largepage | ( | void * | ptr, |
size_t | size, | ||
ABTU_MEM_LARGEPAGE_TYPE | type | ||
) |
Definition at line 132 of file largepage.c.
ABTU_ret_err int ABTU_hashtable_create | ( | size_t | num_entries, |
size_t | data_size, | ||
ABTU_hashtable ** | pp_hashtable | ||
) |
Definition at line 21 of file hashtable.c.
void ABTU_hashtable_delete | ( | ABTU_hashtable * | p_hashtable, |
int | key, | ||
int * | deleted | ||
) |
Definition at line 144 of file hashtable.c.
void ABTU_hashtable_free | ( | ABTU_hashtable * | p_hashtable | ) |
Definition at line 42 of file hashtable.c.
void ABTU_hashtable_get | ( | const ABTU_hashtable * | p_hashtable, |
int | key, | ||
void * | data, | ||
int * | found | ||
) |
Definition at line 56 of file hashtable.c.
ABTU_ret_err int ABTU_hashtable_set | ( | ABTU_hashtable * | p_hashtable, |
int | key, | ||
const void * | data, | ||
int * | overwritten | ||
) |
Definition at line 91 of file hashtable.c.
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 235 of file abtu.h.
Referenced by ABTU_alloc_largepage(), ABTU_calloc(), ABTU_realloc(), 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 216 of file abtu.h.
Referenced by ABTU_alloc_largepage(), ABTU_is_supported_largepage_type(), and ABTU_malloc().
|
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 load_env_uint32().
|
inlinestatic |
Definition at line 65 of file abtu.h.
Referenced by load_env_uint64().
ABTU_ret_err int ABTU_mprotect | ( | void * | addr, |
size_t | size, | ||
ABT_bool | protect | ||
) |
Definition at line 9 of file mprotect.c.
Referenced by protect_memory().
|
inlinestatic |
Definition at line 257 of file abtu.h.
Referenced by list_realloc().
|
inlinestatic |
Definition at line 105 of file abtu.h.
Referenced by protect_memory().
|
inlinestatic |
Definition at line 95 of file abtu.h.
Referenced by ABTU_hashtable_create(), ABTU_hashtable_delete(), ABTU_malloc(), and get_element().
|
inlinestatic |