LLVM OpenMP 20.0.0git
|
#include <stdio.h>
#include <inttypes.h>
#include <omp.h>
#include <omp-tools.h>
#include "ompt-signal.h"
#include "../../src/kmp_platform.h"
Go to the source code of this file.
Macros | |
#define | _DEFAULT_SOURCE |
#define | __STDC_FORMAT_MACROS |
#define | _TOOL_PREFIX "" |
#define | _OMPT_TESTS |
#define | get_frame_address(level) __builtin_frame_address(level) |
#define | print_frame(level) |
#define | define_ompt_label(id) |
#define | get_ompt_label_address(id) (&& ompt_label_##id) |
#define | print_current_address(id) |
#define | print_fuzzy_address(id) |
#define | FUZZY_ADDRESS_DISCARD_NIBBLES 2 |
#define | FUZZY_ADDRESS_DISCARD_BYTES (1 << ((FUZZY_ADDRESS_DISCARD_NIBBLES) * 4)) |
#define | print_fuzzy_address_blocks(addr) |
#define | register_ompt_callback_t(name, type) |
#define | register_ompt_callback(name) register_ompt_callback_t(name, name##_t) |
Functions | |
static void | format_task_type (int type, char *buffer) |
static void | print_ids (int level) |
static void | on_ompt_callback_mutex_acquire (ompt_mutex_t kind, unsigned int hint, unsigned int impl, ompt_wait_id_t wait_id, const void *codeptr_ra) |
static void | on_ompt_callback_mutex_acquired (ompt_mutex_t kind, ompt_wait_id_t wait_id, const void *codeptr_ra) |
static void | on_ompt_callback_mutex_released (ompt_mutex_t kind, ompt_wait_id_t wait_id, const void *codeptr_ra) |
static void | on_ompt_callback_nest_lock (ompt_scope_endpoint_t endpoint, ompt_wait_id_t wait_id, const void *codeptr_ra) |
static void | on_ompt_callback_sync_region (ompt_sync_region_t kind, ompt_scope_endpoint_t endpoint, ompt_data_t *parallel_data, ompt_data_t *task_data, const void *codeptr_ra) |
static void | on_ompt_callback_sync_region_wait (ompt_sync_region_t kind, ompt_scope_endpoint_t endpoint, ompt_data_t *parallel_data, ompt_data_t *task_data, const void *codeptr_ra) |
static void | on_ompt_callback_reduction (ompt_sync_region_t kind, ompt_scope_endpoint_t endpoint, ompt_data_t *parallel_data, ompt_data_t *task_data, const void *codeptr_ra) |
static void | on_ompt_callback_flush (ompt_data_t *thread_data, const void *codeptr_ra) |
static void | on_ompt_callback_cancel (ompt_data_t *task_data, int flags, const void *codeptr_ra) |
static void | on_ompt_callback_implicit_task (ompt_scope_endpoint_t endpoint, ompt_data_t *parallel_data, ompt_data_t *task_data, unsigned int team_size, unsigned int thread_num, int flags) |
static void | on_ompt_callback_lock_init (ompt_mutex_t kind, unsigned int hint, unsigned int impl, ompt_wait_id_t wait_id, const void *codeptr_ra) |
static void | on_ompt_callback_lock_destroy (ompt_mutex_t kind, ompt_wait_id_t wait_id, const void *codeptr_ra) |
static void | on_ompt_callback_work (ompt_work_t wstype, ompt_scope_endpoint_t endpoint, ompt_data_t *parallel_data, ompt_data_t *task_data, uint64_t count, const void *codeptr_ra) |
static void | on_ompt_callback_dispatch (ompt_data_t *parallel_data, ompt_data_t *task_data, ompt_dispatch_t kind, ompt_data_t instance) |
static void | on_ompt_callback_masked (ompt_scope_endpoint_t endpoint, ompt_data_t *parallel_data, ompt_data_t *task_data, const void *codeptr_ra) |
static void | on_ompt_callback_parallel_begin (ompt_data_t *encountering_task_data, const ompt_frame_t *encountering_task_frame, ompt_data_t *parallel_data, uint32_t requested_team_size, int flag, const void *codeptr_ra) |
static void | on_ompt_callback_parallel_end (ompt_data_t *parallel_data, ompt_data_t *encountering_task_data, int flag, const void *codeptr_ra) |
static void | on_ompt_callback_task_create (ompt_data_t *encountering_task_data, const ompt_frame_t *encountering_task_frame, ompt_data_t *new_task_data, int type, int has_dependences, const void *codeptr_ra) |
static void | on_ompt_callback_task_schedule (ompt_data_t *first_task_data, ompt_task_status_t prior_task_status, ompt_data_t *second_task_data) |
static void | on_ompt_callback_dependences (ompt_data_t *task_data, const ompt_dependence_t *deps, int ndeps) |
static void | on_ompt_callback_task_dependence (ompt_data_t *first_task_data, ompt_data_t *second_task_data) |
static void | on_ompt_callback_thread_begin (ompt_thread_t thread_type, ompt_data_t *thread_data) |
static void | on_ompt_callback_thread_end (ompt_data_t *thread_data) |
static int | on_ompt_callback_control_tool (uint64_t command, uint64_t modifier, void *arg, const void *codeptr_ra) |
static void | on_ompt_callback_error (ompt_severity_t severity, const char *message, size_t length, const void *codeptr_ra) |
int | ompt_initialize (ompt_function_lookup_t lookup, int initial_device_num, ompt_data_t *tool_data) |
void | ompt_finalize (ompt_data_t *tool_data) |
ompt_start_tool_result_t * | ompt_start_tool (unsigned int omp_version, const char *runtime_version) |
Variables | |
static const char * | ompt_thread_t_values [] |
static const char * | ompt_task_status_t_values [] |
static const char * | ompt_cancel_flag_t_values [] |
static const char * | ompt_work_t_values [] |
static const char * | ompt_work_events_t_values [] |
static const char * | ompt_dependence_type_t_values [36] |
static const char * | ompt_sync_region_t_values [] |
static ompt_set_callback_t | ompt_set_callback |
static ompt_get_callback_t | ompt_get_callback |
static ompt_get_state_t | ompt_get_state |
static ompt_get_task_info_t | ompt_get_task_info |
static ompt_get_task_memory_t | ompt_get_task_memory |
static ompt_get_thread_data_t | ompt_get_thread_data |
static ompt_get_parallel_info_t | ompt_get_parallel_info |
static ompt_get_unique_id_t | ompt_get_unique_id |
static ompt_finalize_tool_t | ompt_finalize_tool |
static ompt_get_num_procs_t | ompt_get_num_procs |
static ompt_get_num_places_t | ompt_get_num_places |
static ompt_get_place_proc_ids_t | ompt_get_place_proc_ids |
static ompt_get_place_num_t | ompt_get_place_num |
static ompt_get_partition_place_nums_t | ompt_get_partition_place_nums |
static ompt_get_proc_id_t | ompt_get_proc_id |
static ompt_enumerate_states_t | ompt_enumerate_states |
static ompt_enumerate_mutex_impls_t | ompt_enumerate_mutex_impls |
#define __STDC_FORMAT_MACROS |
Definition at line 9 of file callback.h.
#define _DEFAULT_SOURCE |
Definition at line 5 of file callback.h.
#define _OMPT_TESTS |
Definition at line 22 of file callback.h.
#define _TOOL_PREFIX "" |
Definition at line 20 of file callback.h.
#define define_ompt_label | ( | id | ) |
Definition at line 201 of file callback.h.
#define FUZZY_ADDRESS_DISCARD_BYTES (1 << ((FUZZY_ADDRESS_DISCARD_NIBBLES) * 4)) |
Definition at line 314 of file callback.h.
#define FUZZY_ADDRESS_DISCARD_NIBBLES 2 |
Definition at line 313 of file callback.h.
Definition at line 170 of file callback.h.
Definition at line 209 of file callback.h.
#define print_current_address | ( | id | ) |
Definition at line 213 of file callback.h.
#define print_frame | ( | level | ) |
Definition at line 172 of file callback.h.
#define print_fuzzy_address | ( | id | ) |
Definition at line 307 of file callback.h.
#define print_fuzzy_address_blocks | ( | addr | ) |
Definition at line 315 of file callback.h.
#define register_ompt_callback | ( | name | ) | register_ompt_callback_t(name, name##_t) |
Definition at line 331 of file callback.h.
Definition at line 324 of file callback.h.
Definition at line 108 of file callback.h.
References type.
Referenced by __attribute__(), on_ompt_callback_implicit_task(), on_ompt_callback_task_create(), and print_ids().
void ompt_finalize | ( | ompt_data_t * | tool_data | ) |
Definition at line 1104 of file callback.h.
Referenced by ompt_start_tool().
int ompt_initialize | ( | ompt_function_lookup_t | lookup, |
int | initial_device_num, | ||
ompt_data_t * | tool_data | ||
) |
Definition at line 1049 of file callback.h.
References ompt_enumerate_mutex_impls, ompt_enumerate_states, ompt_finalize_tool, ompt_get_callback, ompt_get_num_places, ompt_get_num_procs, ompt_get_parallel_info, ompt_get_partition_place_nums, ompt_get_place_num, ompt_get_place_proc_ids, ompt_get_proc_id, ompt_get_state, ompt_get_task_info, ompt_get_task_memory, ompt_get_thread_data, ompt_get_unique_id, ompt_set_callback, register_ompt_callback, and register_ompt_callback_t.
Referenced by ompt_cds_initialize(), and ompt_start_tool().
ompt_start_tool_result_t * ompt_start_tool | ( | unsigned int | omp_version, |
const char * | runtime_version | ||
) |
Definition at line 1112 of file callback.h.
References ompt_finalize(), ompt_initialize(), and ompt_start_tool_result.
|
static |
Definition at line 614 of file callback.h.
References _TOOL_PREFIX, ompt_cancel_flag_t_values, ompt_get_thread_data, and value.
Referenced by on_cds_ompt_callback_cancel().
|
static |
Definition at line 999 of file callback.h.
References _TOOL_PREFIX, ompt_get_parallel_info, ompt_get_task_info, ompt_get_thread_data, and value.
|
static |
Definition at line 937 of file callback.h.
References _TOOL_PREFIX, i, ompt_dependence_type_t_values, ompt_get_thread_data, and value.
Referenced by on_cds_ompt_callback_dependences().
|
static |
Definition at line 791 of file callback.h.
References _TOOL_PREFIX, instance, ompt_get_thread_data, and value.
|
static |
Definition at line 1040 of file callback.h.
References length, ompt_get_thread_data, and value.
Definition at line 605 of file callback.h.
References _TOOL_PREFIX.
|
static |
Definition at line 644 of file callback.h.
References _TOOL_PREFIX, format_task_type(), ompt_get_thread_data, ompt_get_unique_id, and value.
Referenced by on_cds_ompt_callback_implicit_task().
|
static |
Definition at line 739 of file callback.h.
References _TOOL_PREFIX, ompt_get_thread_data, and value.
|
static |
Definition at line 712 of file callback.h.
References _TOOL_PREFIX, ompt_get_thread_data, and value.
|
static |
Definition at line 828 of file callback.h.
References _TOOL_PREFIX, ompt_get_thread_data, and value.
Referenced by on_cds_ompt_callback_master().
|
static |
Definition at line 335 of file callback.h.
References _TOOL_PREFIX, ompt_get_thread_data, and value.
|
static |
Definition at line 392 of file callback.h.
References _TOOL_PREFIX, ompt_get_thread_data, and value.
|
static |
Definition at line 446 of file callback.h.
References _TOOL_PREFIX, ompt_get_thread_data, and value.
|
static |
Definition at line 488 of file callback.h.
References _TOOL_PREFIX, ompt_get_thread_data, and value.
|
static |
Definition at line 854 of file callback.h.
References _TOOL_PREFIX, event, flag, ompt_get_thread_data, ompt_get_unique_id, size, and value.
Referenced by on_cds_ompt_callback_parallel_begin().
|
static |
Definition at line 875 of file callback.h.
References _TOOL_PREFIX, event, flag, ompt_get_thread_data, and value.
Referenced by on_cds_ompt_callback_parallel_end().
|
static |
Definition at line 576 of file callback.h.
References _TOOL_PREFIX, ompt_get_thread_data, and value.
|
static |
Definition at line 514 of file callback.h.
References _TOOL_PREFIX, ompt_get_thread_data, ompt_sync_region_t_values, print_ids(), and value.
Referenced by on_cds_ompt_callback_sync_region().
|
static |
Definition at line 551 of file callback.h.
References _TOOL_PREFIX, ompt_get_thread_data, ompt_sync_region_t_values, and value.
Referenced by on_cds_ompt_callback_sync_region_wait().
|
static |
Definition at line 887 of file callback.h.
References _TOOL_PREFIX, format_task_type(), ompt_get_thread_data, ompt_get_unique_id, type, and value.
Referenced by on_cds_ompt_callback_task_create().
|
static |
Definition at line 964 of file callback.h.
References _TOOL_PREFIX, ompt_get_thread_data, and value.
Referenced by on_cds_ompt_callback_task_dependence().
|
static |
Definition at line 917 of file callback.h.
References _TOOL_PREFIX, ompt_get_thread_data, ompt_task_status_t_values, and value.
Referenced by on_cds_ompt_callback_task_schedule().
|
static |
Definition at line 976 of file callback.h.
References _TOOL_PREFIX, ompt_get_thread_data, ompt_get_unique_id, ompt_thread_t_values, and value.
Referenced by main(), and on_cds_ompt_callback_thread_begin().
|
static |
Definition at line 990 of file callback.h.
References _TOOL_PREFIX, ompt_get_thread_data, and value.
Referenced by on_cds_ompt_callback_thread_end().
|
static |
Definition at line 763 of file callback.h.
References _TOOL_PREFIX, count, ompt_get_thread_data, ompt_work_events_t_values, and value.
Referenced by on_cds_ompt_callback_work().
Definition at line 150 of file callback.h.
References format_task_type(), frame, level, ompt_get_task_info, ompt_get_thread_data, and value.
Referenced by main(), and on_ompt_callback_sync_region().
|
static |
Definition at line 40 of file callback.h.
Referenced by on_ompt_callback_cancel().
|
static |
Definition at line 80 of file callback.h.
Referenced by on_ompt_callback_dependences().
|
static |
Definition at line 148 of file callback.h.
Referenced by f(), main(), and ompt_initialize().
|
static |
Definition at line 147 of file callback.h.
Referenced by f(), main(), and ompt_initialize().
|
static |
Definition at line 140 of file callback.h.
Referenced by main(), and ompt_initialize().
|
static |
Definition at line 133 of file callback.h.
Referenced by f(), main(), ompt_initialize(), and ompt_libomp_target_fn_lookup().
|
static |
Definition at line 142 of file callback.h.
Referenced by f(), main(), and ompt_initialize().
|
static |
Definition at line 141 of file callback.h.
Referenced by f(), main(), and ompt_initialize().
|
static |
Definition at line 138 of file callback.h.
Referenced by f(), ompt_initialize(), on_cds_ompt_callback_control_tool(), and on_ompt_callback_control_tool().
|
static |
Definition at line 145 of file callback.h.
Referenced by f(), main(), and ompt_initialize().
|
static |
Definition at line 144 of file callback.h.
Referenced by f(), main(), and ompt_initialize().
|
static |
Definition at line 143 of file callback.h.
Referenced by f(), main(), and ompt_initialize().
|
static |
Definition at line 146 of file callback.h.
Referenced by f(), main(), and ompt_initialize().
|
static |
Definition at line 134 of file callback.h.
Referenced by f(), main(), and ompt_initialize().
|
static |
Definition at line 135 of file callback.h.
Referenced by __attribute__(), f(), ompt_initialize(), on_cds_ompt_callback_control_tool(), on_ompt_callback_control_tool(), and print_ids().
|
static |
Definition at line 136 of file callback.h.
Referenced by ompt_initialize(), on_ompt_callback_implicit_task(), and on_ompt_callback_task_schedule().
|
static |
Definition at line 137 of file callback.h.
Referenced by __attribute__(), f(), main(), ompt_cds_initialize(), ompt_initialize(), on_cds_ompt_callback_control_tool(), on_ompt_callback_cancel(), on_ompt_callback_control_tool(), on_ompt_callback_dependences(), on_ompt_callback_dispatch(), on_ompt_callback_error(), on_ompt_callback_implicit_task(), on_ompt_callback_lock_destroy(), on_ompt_callback_lock_init(), on_ompt_callback_masked(), on_ompt_callback_master(), on_ompt_callback_mutex_acquire(), on_ompt_callback_mutex_acquired(), on_ompt_callback_mutex_released(), on_ompt_callback_nest_lock(), on_ompt_callback_parallel_begin(), on_ompt_callback_parallel_end(), on_ompt_callback_reduction(), on_ompt_callback_sync_region(), on_ompt_callback_sync_region_wait(), on_ompt_callback_task_create(), on_ompt_callback_task_dependence(), on_ompt_callback_task_schedule(), on_ompt_callback_thread_begin(), on_ompt_callback_thread_end(), on_ompt_callback_work(), print_ids(), and print_list().
|
static |
Definition at line 139 of file callback.h.
Referenced by ompt_initialize(), on_ompt_callback_implicit_task(), on_ompt_callback_parallel_begin(), on_ompt_callback_task_create(), and on_ompt_callback_thread_begin().
|
static |
Definition at line 132 of file callback.h.
Referenced by main(), ompt_initialize(), and ompt_tsan_initialize().
|
static |
Definition at line 96 of file callback.h.
Referenced by on_ompt_callback_sync_region(), and on_ompt_callback_sync_region_wait().
|
static |
Definition at line 29 of file callback.h.
Referenced by on_ompt_callback_task_schedule().
|
static |
Definition at line 25 of file callback.h.
Referenced by on_ompt_callback_thread_begin().
|
static |
Definition at line 65 of file callback.h.
Referenced by on_ompt_callback_work().
|
static |
Definition at line 50 of file callback.h.