|
PAPI 7.1.0.0
|


Go to the source code of this file.
Data Structures | |
| struct | cset_hash_decorated_object_t |
| struct | cset_hash_bucket_t |
| struct | cset_hash_table_t |
| struct | papisde_list_entry_t |
| struct | recorder_data_t |
| struct | cntr_class_basic_t |
| struct | cntr_class_callback_t |
| struct | cntr_class_recorder_t |
| struct | cntr_class_cset_t |
| struct | cntr_class_group_t |
| union | cntr_class_specific_t |
| struct | sde_counter_t |
| struct | sde_sorting_params_t |
| struct | papisde_library_desc_t |
| struct | papisde_control_t |
Macros | |
| #define | EXP_CONTAINER_ENTRIES 52 |
| #define | EXP_CONTAINER_MIN_SIZE 2048 |
| #define | PAPISDE_HT_SIZE 512 |
| #define | is_readonly(_X_) (PAPI_SDE_RO == ((_X_)&0x0F)) |
| #define | is_readwrite(_X_) (PAPI_SDE_RW == ((_X_)&0x0F)) |
| #define | is_delta(_X_) (PAPI_SDE_DELTA == ((_X_)&0xF0)) |
| #define | is_instant(_X_) (PAPI_SDE_INSTANT == ((_X_)&0xF0)) |
| #define | _SDE_HASH_BUCKET_COUNT_ 373 |
| #define | _SDE_HASH_BUCKET_WIDTH_ 14 |
| #define | SDE_HASH_IS_FUZZY 0 |
| #define | IS_CNTR_REGISTERED(_CNT) ( CNTR_CLASS_REGISTERED == (_CNT)->cntr_class ) |
| #define | IS_CNTR_CREATED(_CNT) ( CNTR_CLASS_CREATED == (_CNT)->cntr_class ) |
| #define | IS_CNTR_BASIC(_CNT) ( CNTR_CLASS_BASIC & (_CNT)->cntr_class ) |
| #define | IS_CNTR_CALLBACK(_CNT) ( CNTR_CLASS_CB == (_CNT)->cntr_class ) |
| #define | IS_CNTR_RECORDER(_CNT) ( CNTR_CLASS_RECORDER == (_CNT)->cntr_class ) |
| #define | IS_CNTR_CSET(_CNT) ( CNTR_CLASS_CSET == (_CNT)->cntr_class ) |
| #define | IS_CNTR_PLACEHOLDER(_CNT) ( CNTR_CLASS_PLACEHOLDER == (_CNT)->cntr_class ) |
| #define | IS_CNTR_GROUP(_CNT) ( CNTR_CLASS_GROUP == (_CNT)->cntr_class ) |
| #define | mix(h) |
Enumerations | |
| enum | CNTR_CLASS { CNTR_CLASS_REGISTERED = 0x1 , CNTR_CLASS_CREATED = 0x2 , CNTR_CLASS_BASIC = 0x3 , CNTR_CLASS_CB = 0x4 , CNTR_CLASS_RECORDER = 0x8 , CNTR_CLASS_CSET = 0x10 , CNTR_CLASS_PLACEHOLDER = 0x1000 , CNTR_CLASS_GROUP = 0x2000 } |
Functions | |
| int | sdei_setup_counter_internals (papi_handle_t handle, const char *event_name, int cntr_mode, int cntr_type, enum CNTR_CLASS cntr_class, cntr_class_specific_t cntr_union) |
| int | sdei_delete_counter (papisde_library_desc_t *lib_handle, const char *name) |
| int | sdei_inc_ref_count (sde_counter_t *counter) |
| int | sdei_read_counter_group (sde_counter_t *counter, long long int *rslt_ptr) |
| void | sdei_counting_set_to_list (void *cset_handle, cset_list_object_t **list_head) |
| int | sdei_read_and_update_data_value (sde_counter_t *counter, long long int previous_value, long long int *rslt_ptr) |
| int | sdei_hardware_write (sde_counter_t *counter, long long int new_value) |
| int | sdei_set_timer_for_overflow (void) |
| papisde_control_t * | sdei_get_global_struct (void) |
| sde_counter_t * | ht_lookup_by_id (papisde_list_entry_t *hash_table, uint32_t uniq_id) |
| sde_counter_t * | ht_lookup_by_name (papisde_list_entry_t *hash_table, const char *name) |
| sde_counter_t * | ht_delete (papisde_list_entry_t *hash_table, int ht_key, uint32_t uniq_id) |
| void | ht_insert (papisde_list_entry_t *hash_table, int ht_key, sde_counter_t *sde_counter) |
| int | ht_to_array (papisde_list_entry_t *hash_table, sde_counter_t **rslt_array) |
| uint32_t | ht_hash_name (const char *str) |
| uint32_t | ht_hash_id (uint32_t uniq_id) |
| papi_handle_t | do_sde_init (const char *name_of_library, papisde_control_t *gctl) |
| sde_counter_t * | allocate_and_insert (papisde_control_t *gctl, papisde_library_desc_t *lib_handle, const char *name, uint32_t uniq_id, int cntr_mode, int cntr_type, enum CNTR_CLASS cntr_class, cntr_class_specific_t cntr_union) |
| void | exp_container_to_contiguous (recorder_data_t *exp_container, void *cont_buffer) |
| int | exp_container_insert_element (recorder_data_t *exp_container, size_t typesize, const void *value) |
| void | exp_container_init (sde_counter_t *handle, size_t typesize) |
| void | papi_sde_counting_set_to_list (void *cset_handle, cset_list_object_t **list_head) |
| int | cset_insert_elem (cset_hash_table_t *hash_ptr, size_t element_size, size_t hashable_size, const void *element, uint32_t type_id) |
| int | cset_remove_elem (cset_hash_table_t *hash_ptr, size_t hashable_size, const void *element, uint32_t type_id) |
| cset_list_object_t * | cset_to_list (cset_hash_table_t *hash_ptr) |
| int | cset_delete (cset_hash_table_t *hash_ptr) |
| int | sde_ti_reset_counter (uint32_t) |
| int | sde_ti_read_counter (uint32_t, long long int *) |
| int | sde_ti_write_counter (uint32_t, long long) |
| int | sde_ti_name_to_code (const char *, uint32_t *) |
| int | sde_ti_is_simple_counter (uint32_t) |
| int | sde_ti_is_counter_set_to_overflow (uint32_t) |
| int | sde_ti_set_counter_overflow (uint32_t, int) |
| char * | sde_ti_get_event_name (int) |
| char * | sde_ti_get_event_description (int) |
| int | sde_ti_get_num_reg_events (void) |
| int | sde_ti_shutdown (void) |
| static uint64_t | fasthash64 (const void *buf, size_t len, uint64_t seed) |
Variables | |
| papisde_control_t * | _papisde_global_control |
Definition in file sde_lib_internal.h.
| #define _SDE_HASH_BUCKET_COUNT_ 373 |
Definition at line 49 of file sde_lib_internal.h.
| #define _SDE_HASH_BUCKET_WIDTH_ 14 |
Definition at line 50 of file sde_lib_internal.h.
| #define EXP_CONTAINER_ENTRIES 52 |
Definition at line 24 of file sde_lib_internal.h.
| #define EXP_CONTAINER_MIN_SIZE 2048 |
Definition at line 25 of file sde_lib_internal.h.
| #define IS_CNTR_BASIC | ( | _CNT | ) | ( CNTR_CLASS_BASIC & (_CNT)->cntr_class ) |
Definition at line 164 of file sde_lib_internal.h.
| #define IS_CNTR_CALLBACK | ( | _CNT | ) | ( CNTR_CLASS_CB == (_CNT)->cntr_class ) |
Definition at line 165 of file sde_lib_internal.h.
| #define IS_CNTR_CREATED | ( | _CNT | ) | ( CNTR_CLASS_CREATED == (_CNT)->cntr_class ) |
Definition at line 163 of file sde_lib_internal.h.
| #define IS_CNTR_CSET | ( | _CNT | ) | ( CNTR_CLASS_CSET == (_CNT)->cntr_class ) |
Definition at line 167 of file sde_lib_internal.h.
| #define IS_CNTR_GROUP | ( | _CNT | ) | ( CNTR_CLASS_GROUP == (_CNT)->cntr_class ) |
Definition at line 169 of file sde_lib_internal.h.
| #define IS_CNTR_PLACEHOLDER | ( | _CNT | ) | ( CNTR_CLASS_PLACEHOLDER == (_CNT)->cntr_class ) |
Definition at line 168 of file sde_lib_internal.h.
| #define IS_CNTR_RECORDER | ( | _CNT | ) | ( CNTR_CLASS_RECORDER == (_CNT)->cntr_class ) |
Definition at line 166 of file sde_lib_internal.h.
| #define IS_CNTR_REGISTERED | ( | _CNT | ) | ( CNTR_CLASS_REGISTERED == (_CNT)->cntr_class ) |
Definition at line 162 of file sde_lib_internal.h.
| #define is_delta | ( | _X_ | ) | (PAPI_SDE_DELTA == ((_X_)&0xF0)) |
Definition at line 31 of file sde_lib_internal.h.
| #define is_instant | ( | _X_ | ) | (PAPI_SDE_INSTANT == ((_X_)&0xF0)) |
Definition at line 32 of file sde_lib_internal.h.
| #define is_readonly | ( | _X_ | ) | (PAPI_SDE_RO == ((_X_)&0x0F)) |
Definition at line 29 of file sde_lib_internal.h.
| #define is_readwrite | ( | _X_ | ) | (PAPI_SDE_RW == ((_X_)&0x0F)) |
Definition at line 30 of file sde_lib_internal.h.
| #define mix | ( | h | ) |
Definition at line 239 of file sde_lib_internal.h.
| #define PAPISDE_HT_SIZE 512 |
Definition at line 27 of file sde_lib_internal.h.
| #define SDE_HASH_IS_FUZZY 0 |
Definition at line 58 of file sde_lib_internal.h.
| enum CNTR_CLASS |
| Enumerator | |
|---|---|
| CNTR_CLASS_REGISTERED | |
| CNTR_CLASS_CREATED | |
| CNTR_CLASS_BASIC | |
| CNTR_CLASS_CB | |
| CNTR_CLASS_RECORDER | |
| CNTR_CLASS_CSET | |
| CNTR_CLASS_PLACEHOLDER | |
| CNTR_CLASS_GROUP | |
Definition at line 151 of file sde_lib_internal.h.
| sde_counter_t * allocate_and_insert | ( | papisde_control_t * | gctl, |
| papisde_library_desc_t * | lib_handle, | ||
| const char * | name, | ||
| uint32_t | uniq_id, | ||
| int | cntr_mode, | ||
| int | cntr_type, | ||
| enum CNTR_CLASS | cntr_class, | ||
| cntr_class_specific_t | cntr_union | ||
| ) |
Definition at line 112 of file sde_lib_misc.c.


| int cset_delete | ( | cset_hash_table_t * | hash_ptr | ) |
Definition at line 526 of file sde_lib_datastructures.c.

| int cset_insert_elem | ( | cset_hash_table_t * | hash_ptr, |
| size_t | element_size, | ||
| size_t | hashable_size, | ||
| const void * | element, | ||
| uint32_t | type_id | ||
| ) |
Definition at line 285 of file sde_lib_datastructures.c.


| int cset_remove_elem | ( | cset_hash_table_t * | hash_ptr, |
| size_t | hashable_size, | ||
| const void * | element, | ||
| uint32_t | type_id | ||
| ) |
Definition at line 385 of file sde_lib_datastructures.c.


| cset_list_object_t * cset_to_list | ( | cset_hash_table_t * | hash_ptr | ) |
Definition at line 476 of file sde_lib_datastructures.c.

| papi_handle_t do_sde_init | ( | const char * | name_of_library, |
| papisde_control_t * | gctl | ||
| ) |
Definition at line 91 of file sde_lib_misc.c.


| void exp_container_init | ( | sde_counter_t * | handle, |
| size_t | typesize | ||
| ) |
| int exp_container_insert_element | ( | recorder_data_t * | exp_container, |
| size_t | typesize, | ||
| const void * | value | ||
| ) |
Definition at line 229 of file sde_lib_datastructures.c.


| void exp_container_to_contiguous | ( | recorder_data_t * | exp_container, |
| void * | cont_buffer | ||
| ) |
Definition at line 204 of file sde_lib_datastructures.c.

|
inlinestatic |
Definition at line 245 of file sde_lib_internal.h.

| sde_counter_t * ht_delete | ( | papisde_list_entry_t * | hash_table, |
| int | ht_key, | ||
| uint32_t | uniq_id | ||
| ) |
Definition at line 114 of file sde_lib_datastructures.c.


| uint32_t ht_hash_id | ( | uint32_t | uniq_id | ) |
Definition at line 18 of file sde_lib_datastructures.c.

| uint32_t ht_hash_name | ( | const char * | str | ) |
Definition at line 23 of file sde_lib_datastructures.c.

| void ht_insert | ( | papisde_list_entry_t * | hash_table, |
| int | ht_key, | ||
| sde_counter_t * | sde_counter | ||
| ) |
Definition at line 34 of file sde_lib_datastructures.c.

| sde_counter_t * ht_lookup_by_id | ( | papisde_list_entry_t * | hash_table, |
| uint32_t | uniq_id | ||
| ) |
Definition at line 178 of file sde_lib_datastructures.c.


| sde_counter_t * ht_lookup_by_name | ( | papisde_list_entry_t * | hash_table, |
| const char * | name | ||
| ) |
Definition at line 156 of file sde_lib_datastructures.c.


| int ht_to_array | ( | papisde_list_entry_t * | hash_table, |
| sde_counter_t ** | rslt_array | ||
| ) |
Definition at line 65 of file sde_lib_datastructures.c.


| void papi_sde_counting_set_to_list | ( | void * | cset_handle, |
| cset_list_object_t ** | list_head | ||
| ) |
| char * sde_ti_get_event_description | ( | int | event_id | ) |
Definition at line 416 of file sde_lib_ti.c.


| char * sde_ti_get_event_name | ( | int | event_id | ) |
Definition at line 399 of file sde_lib_ti.c.


| int sde_ti_get_num_reg_events | ( | void | ) |
Definition at line 433 of file sde_lib_ti.c.

| int sde_ti_is_counter_set_to_overflow | ( | uint32_t | counter_id | ) |
Definition at line 343 of file sde_lib_ti.c.


| int sde_ti_is_simple_counter | ( | uint32_t | counter_id | ) |
Definition at line 325 of file sde_lib_ti.c.


| int sde_ti_name_to_code | ( | const char * | event_name, |
| uint32_t * | event_code | ||
| ) |
Definition at line 204 of file sde_lib_ti.c.


| int sde_ti_reset_counter | ( | uint32_t | counter_id | ) |
Definition at line 169 of file sde_lib_ti.c.


Definition at line 360 of file sde_lib_ti.c.


| int sde_ti_shutdown | ( | void | ) |
Definition at line 136 of file sde_lib_ti.c.


| void sdei_counting_set_to_list | ( | void * | cset_handle, |
| cset_list_object_t ** | list_head | ||
| ) |
Definition at line 135 of file sde_lib_misc.c.


| int sdei_delete_counter | ( | papisde_library_desc_t * | lib_handle, |
| const char * | name | ||
| ) |
Definition at line 260 of file sde_lib_misc.c.


| papisde_control_t * sdei_get_global_struct | ( | void | ) |
sdei_get_global_struct() checks if the global structure has been allocated and allocates it if has not.
Definition at line 34 of file sde_lib_misc.c.

Definition at line 556 of file sde_lib_misc.c.

| int sdei_inc_ref_count | ( | sde_counter_t * | counter | ) |
Definition at line 236 of file sde_lib_misc.c.


| int sdei_read_and_update_data_value | ( | sde_counter_t * | counter, |
| long long int | previous_value, | ||
| long long int * | rslt_ptr | ||
| ) |
Definition at line 490 of file sde_lib_misc.c.


This function assumes that all counters in a group (including recursive subgroups) have the same type.
Definition at line 390 of file sde_lib_misc.c.


|
inline |
| int sdei_setup_counter_internals | ( | papi_handle_t | handle, |
| const char * | event_name, | ||
| int | cntr_mode, | ||
| int | cntr_type, | ||
| enum CNTR_CLASS | cntr_class, | ||
| cntr_class_specific_t | cntr_union | ||
| ) |
Definition at line 156 of file sde_lib_misc.c.

