#include <assert.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "ompt-internal.h"
#include "ompt-specific.c"
#include "ompt-state.h"
#include "ompt-event.h"
Go to the source code of this file.
Data Structures | |
struct | ompt_state_info_t |
Defines | |
#define | get_failure 0 |
#define | get_success 1 |
#define | no_tool_present 0 |
#define | ompt_event(event_name, callback_type, event_id, is_impl) |
#define | ompt_event(event_name, callback_type, event_id, is_impl) |
#define | ompt_state(state, code) { # state, state }, |
#define | set_failure 0 |
#define | set_success 3 |
Functions | |
_OMP_EXTERN | __attribute__ ((weak)) |
_OMP_EXTERN void | ompt_control (uint64_t command, uint64_t modifier) |
_OMP_EXTERN int | ompt_enumerate_state (int current_state, int *next_state, const char **next_state_name) |
void | ompt_fini () |
_OMP_EXTERN int | ompt_get_callback (ompt_event_t evid, ompt_callback_t *cb) |
_OMP_EXTERN void * | ompt_get_idle_frame () |
_OMP_EXTERN int | ompt_get_ompt_version () |
_OMP_EXTERN void * | ompt_get_parallel_function (int ancestor_level) |
_OMP_EXTERN ompt_parallel_id_t | ompt_get_parallel_id (int ancestor_level) |
_OMP_EXTERN int | ompt_get_runtime_version (char *buffer, int length) |
_OMP_EXTERN ompt_state_t | ompt_get_state (ompt_wait_id_t *ompt_wait_id) |
_OMP_EXTERN ompt_frame_t * | ompt_get_task_frame (int ancestor_level) |
_OMP_EXTERN void * | ompt_get_task_function (int ancestor_level) |
_OMP_EXTERN ompt_task_id_t | ompt_get_task_id (int ancestor_level) |
void | ompt_init () |
_OMP_EXTERN int | ompt_set_callback (ompt_event_t evid, ompt_callback_t cb) |
Variables | |
_OMP_EXTERN char ** | ompd_dll_locations |
ompt_callbacks_t | ompt_callbacks |
ompt_state_info_t | ompt_state_info [] |
ompt_status_t | ompt_status = ompt_status_ready |
#define get_failure 0 |
Definition at line 33 of file ompt-general.c.
Referenced by ompt_get_callback().
#define get_success 1 |
Definition at line 32 of file ompt-general.c.
#define no_tool_present 0 |
Definition at line 35 of file ompt-general.c.
Referenced by __attribute__().
#define ompt_event | ( | event_name, | |||
callback_type, | |||||
event_id, | |||||
is_impl | ) |
case event_name: \ if (is_impl) { \ ompt_callback_t mycb = \ (ompt_callback_t) ompt_callbacks.ompt_callback(event_name); \ if (mycb) { \ *cb = mycb; \ return get_success; \ } \ } \ return get_failure;
#define ompt_event | ( | event_name, | |||
callback_type, | |||||
event_id, | |||||
is_impl | ) |
case event_name: \ if (is_impl) { \ ompt_callbacks.ompt_callback(event_name) = (callback_type) cb; \ return set_success; \ } \ return set_failure;
#define ompt_state | ( | state, | |||
code | ) | { # state, state }, |
#define set_failure 0 |
Definition at line 30 of file ompt-general.c.
Referenced by ompt_set_callback().
#define set_success 3 |
Definition at line 29 of file ompt-general.c.
_OMP_EXTERN __attribute__ | ( | (weak) | ) |
Definition at line 145 of file ompt-general.c.
References no_tool_present.
_OMP_EXTERN void ompt_control | ( | uint64_t | command, | |
uint64_t | modifier | |||
) |
Definition at line 278 of file ompt-general.c.
References ompt_status, and ompt_status_track_callback.
_OMP_EXTERN int ompt_enumerate_state | ( | int | current_state, | |
int * | next_state, | |||
const char ** | next_state_name | |||
) |
Definition at line 75 of file ompt-general.c.
References i, ompt_state_info_t::state_id, and ompt_state_info_t::state_name.
void ompt_fini | ( | void | ) |
Definition at line 181 of file ompt-general.c.
References ompt_status, ompt_status_disabled, and ompt_status_track_callback.
Referenced by __kmp_internal_end().
_OMP_EXTERN int ompt_get_callback | ( | ompt_event_t | evid, | |
ompt_callback_t * | cb | |||
) |
Definition at line 117 of file ompt-general.c.
References get_failure.
_OMP_EXTERN void* ompt_get_idle_frame | ( | void | ) |
Definition at line 228 of file ompt-general.c.
References __ompt_get_idle_frame_internal().
_OMP_EXTERN int ompt_get_ompt_version | ( | void | ) |
Definition at line 262 of file ompt-general.c.
References OMPT_VERSION.
_OMP_EXTERN void* ompt_get_parallel_function | ( | int | ancestor_level | ) |
Definition at line 204 of file ompt-general.c.
References __ompt_get_parallel_function_internal().
_OMP_EXTERN ompt_parallel_id_t ompt_get_parallel_id | ( | int | ancestor_level | ) |
Definition at line 198 of file ompt-general.c.
References __ompt_get_parallel_id_internal().
_OMP_EXTERN int ompt_get_runtime_version | ( | char * | buffer, | |
int | length | |||
) |
Definition at line 291 of file ompt-general.c.
References __ompt_get_runtime_version_internal().
_OMP_EXTERN ompt_state_t ompt_get_state | ( | ompt_wait_id_t * | ompt_wait_id | ) |
Definition at line 210 of file ompt-general.c.
References __ompt_get_state_internal().
_OMP_EXTERN ompt_frame_t* ompt_get_task_frame | ( | int | ancestor_level | ) |
Definition at line 245 of file ompt-general.c.
References __ompt_get_task_frame_internal().
_OMP_EXTERN void* ompt_get_task_function | ( | int | ancestor_level | ) |
Definition at line 251 of file ompt-general.c.
References __ompt_get_task_function_internal().
_OMP_EXTERN ompt_task_id_t ompt_get_task_id | ( | int | ancestor_level | ) |
Definition at line 239 of file ompt-general.c.
References __ompt_get_task_id_internal().
void ompt_init | ( | void | ) |
Definition at line 151 of file ompt-general.c.
References ompd_dll_locations, ompt_initialize(), ompt_status, ompt_status_disabled, ompt_status_track, and ompt_status_track_callback.
Referenced by __kmpc_begin().
_OMP_EXTERN int ompt_set_callback | ( | ompt_event_t | evid, | |
ompt_callback_t | cb | |||
) |
Definition at line 98 of file ompt-general.c.
References set_failure.
_OMP_EXTERN char** ompd_dll_locations |
Definition at line 65 of file ompt-general.c.
Referenced by ompt_init().
Definition at line 63 of file ompt-general.c.
Referenced by __kmp_acquire_atomic_lock(), __kmp_barrier(), __kmp_dispatch_finish(), __kmp_for_static_init(), __kmp_fork_call(), __kmp_join_barrier(), __kmp_join_call(), __kmp_launch_thread(), __kmp_parallel_dxo(), __kmp_release_atomic_lock(), __kmp_wait_sleep(), __kmpc_end_critical(), __kmpc_end_master(), __kmpc_end_ordered(), __kmpc_end_single(), __kmpc_for_static_fini(), __kmpc_master(), __kmpc_ordered(), __kmpc_single(), __kmpc_unset_lock(), and __kmpc_unset_nest_lock().
Definition at line 57 of file ompt-general.c.
ompt_status_t ompt_status = ompt_status_ready |
Definition at line 54 of file ompt-general.c.
Referenced by __kmp_acquire_atomic_lock(), __kmp_acquire_queuing_lock_timed_template(), __kmp_barrier(), __kmp_dispatch_finish(), __kmp_for_static_init(), __kmp_fork_call(), __kmp_join_barrier(), __kmp_join_call(), __kmp_launch_thread(), __kmp_parallel_dxo(), __kmp_release_atomic_lock(), __kmp_wait_sleep(), __kmpc_end_critical(), __kmpc_end_master(), __kmpc_end_ordered(), __kmpc_end_single(), __kmpc_for_static_fini(), __kmpc_master(), __kmpc_ordered(), __kmpc_single(), __kmpc_unset_lock(), __kmpc_unset_nest_lock(), ompt_control(), ompt_fini(), and ompt_init().