Go to the source code of this file.
|
| int | cuptid_shutdown (void) |
| |
| void | cuptid_disabled_reason_get (const char **msg) |
| |
| int | cuptid_init (void) |
| |
| int | cuptid_thread_info_create (cuptid_info_t *info) |
| |
| int | cuptid_thread_info_destroy (cuptid_info_t *info) |
| |
| int | cuptid_control_create (ntv_event_table_t event_names, cuptid_info_t info, cuptid_ctl_t *pcupti_ctl) |
| |
| int | cuptid_control_destroy (cuptid_ctl_t *pcupti_ctl) |
| |
| int | cuptid_control_start (cuptid_ctl_t cupti_ctl) |
| |
| int | cuptid_control_stop (cuptid_ctl_t cupti_ctl) |
| |
| int | cuptid_control_read (cuptid_ctl_t cupti_ctl, long long *values) |
| |
| int | cuptid_control_reset (cuptid_ctl_t cupti_ctl) |
| |
| int | cuptid_event_enum (cuptiu_event_table_t *all_evt_names) |
| |
| int | cuptid_event_name_to_descr (char *evt_name, char *descr) |
| |
| void | cuptid_event_table_destroy (ntv_event_table_t *evt_table) |
| |
| int | cuptid_event_table_create (ntv_event_table_t *evt_table) |
| |
| int | cuptid_event_table_select_by_idx (ntv_event_table_t evt_table, int count, int *idcs, ntv_event_table_t *pevt_names) |
| |
| int | cuptid_event_table_find_name (ntv_event_table_t evt_table, const char *evt_name, ntv_event_t *found_rec) |
| |
| int | cuptid_event_table_insert_record (ntv_event_table_t evt_table, const char *evt_name, unsigned int evt_code, int evt_pos) |
| |
| int | cuptid_event_table_get_item (ntv_event_table_t evt_table, unsigned int evt_idx, ntv_event_t *record) |
| |
◆ cuptid_control_create()
Definition at line 96 of file cupti_dispatch.c.
97{
99
100#if defined(API_PERFWORKS)
102#endif
103
105
106#if defined (API_EVENTS)
108#endif
109
110 }
112}
static const char * event_names[2]
int cuptic_is_runtime_perfworks_api(void)
int cuptic_is_runtime_events_api(void)
int cuptie_control_create(cuptiu_event_table_t *event_names, void *thr_info, cuptie_control_t *pctl)
int cuptip_control_create(cuptiu_event_table_t *event_names, cuptic_info_t thr_info, cuptip_control_t *pstate)
◆ cuptid_control_destroy()
Definition at line 114 of file cupti_dispatch.c.
115{
117
118#if defined(API_PERFWORKS)
120#endif
121
123
124#if defined(API_EVENTS)
126#endif
127
128 }
130}
int cuptie_control_destroy(cuptie_control_t *pctl)
int cuptip_control_destroy(cuptip_control_t *pstate)
◆ cuptid_control_read()
Definition at line 168 of file cupti_dispatch.c.
169{
171
172#if defined(API_PERFWORKS)
174#endif
175
177
178#if defined(API_EVENTS)
180#endif
181
182 }
184}
int cuptie_control_read(cuptie_control_t ctl, long long *values)
int cuptip_control_read(cuptip_control_t state, long long *values)
static long long values[NUM_EVENTS]
◆ cuptid_control_reset()
Definition at line 186 of file cupti_dispatch.c.
187{
189
190#if defined(API_PERFWORKS)
192#endif
193
195
196#if defined(API_EVENTS)
198#endif
199
200 }
202}
int cuptie_control_reset(cuptie_control_t ctl)
int cuptip_control_reset(cuptip_control_t state)
◆ cuptid_control_start()
Definition at line 132 of file cupti_dispatch.c.
133{
135
136#if defined(API_PERFWORKS)
138#endif
139
141
142#if defined(API_EVENTS)
144#endif
145
146 }
148}
int cuptie_control_start(cuptie_control_t ctl)
int cuptip_control_start(cuptip_control_t state)
◆ cuptid_control_stop()
Definition at line 150 of file cupti_dispatch.c.
151{
153
154#if defined(API_PERFWORKS)
156#endif
157
159
160#if defined(API_EVENTS)
162#endif
163
164 }
166}
int cuptie_control_stop(cuptie_control_t ctl)
int cuptip_control_stop(cuptip_control_t state)
◆ cuptid_disabled_reason_get()
| void cuptid_disabled_reason_get |
( |
const char ** |
msg | ) |
|
Definition at line 46 of file cupti_dispatch.c.
47{
49}
void cuptic_disabled_reason_get(const char **pmsg)
◆ cuptid_event_enum()
Definition at line 204 of file cupti_dispatch.c.
205{
207
208#if defined(API_PERFWORKS)
210#endif
211
213
214#if defined(API_EVENTS)
216#endif
217
218 }
220}
int cuptie_event_enum(cuptiu_event_table_t *all_evt_names)
int cuptip_event_enum(cuptiu_event_table_t *all_evt_names)
◆ cuptid_event_name_to_descr()
| int cuptid_event_name_to_descr |
( |
char * |
evt_name, |
|
|
char * |
descr |
|
) |
| |
Definition at line 222 of file cupti_dispatch.c.
223{
225
226#if defined(API_PERFWORKS)
228#endif
229
231
232#if defined(API_EVENTS)
234#endif
235
236 }
238}
int cuptie_event_name_to_descr(const char *evt_name, char *description)
int cuptip_event_name_to_descr(const char *evt_name, char *description)
char * evt_name(evstock *stock, int index)
◆ cuptid_event_table_create()
Definition at line 245 of file cupti_dispatch.c.
246{
248}
int cuptiu_event_table_create(int sizeof_rec, cuptiu_event_table_t **pevt_table)
◆ cuptid_event_table_destroy()
Definition at line 240 of file cupti_dispatch.c.
241{
243}
void cuptiu_event_table_destroy(cuptiu_event_table_t **pevt_table)
◆ cuptid_event_table_find_name()
Definition at line 255 of file cupti_dispatch.c.
256{
258}
int cuptiu_event_table_find_name(cuptiu_event_table_t *evt_table, const char *evt_name, cuptiu_event_t **found_rec)
◆ cuptid_event_table_get_item()
Definition at line 265 of file cupti_dispatch.c.
266{
268}
int cuptiu_event_table_get_item(cuptiu_event_table_t *evt_table, int evt_idx, cuptiu_event_t **record)
◆ cuptid_event_table_insert_record()
Definition at line 260 of file cupti_dispatch.c.
261{
263}
int cuptiu_event_table_insert_record(cuptiu_event_table_t *evt_table, const char *evt_name, unsigned int evt_code, int evt_pos)
◆ cuptid_event_table_select_by_idx()
Definition at line 250 of file cupti_dispatch.c.
251{
253}
int cuptiu_event_table_select_by_idx(cuptiu_event_table_t *src, int count, int *idcs, cuptiu_event_table_t **pevt_names)
◆ cuptid_init()
Definition at line 51 of file cupti_dispatch.c.
52{
53 int papi_errno;
56 goto fn_exit;
57 }
58
60
61#if defined(API_PERFWORKS)
63#else
66 goto fn_exit;
67#endif
68
70
71#if defined(API_EVENTS)
73#else
76#endif
77
78 } else {
81 }
82fn_exit:
83 return papi_errno;
84}
void cuptic_disabled_reason_set(const char *msg)
◆ cuptid_shutdown()
| int cuptid_shutdown |
( |
void |
| ) |
|
Definition at line 20 of file cupti_dispatch.c.
21{
22 int papi_errno;
24
25#if defined(API_PERFWORKS)
28 return papi_errno;
29 }
30#endif
31
33
34#if defined(API_EVENTS)
37 return papi_errno;
38 }
39#endif
40
41 }
42
44}
int cuptic_shutdown(void)
int cuptie_shutdown(void)
int cuptip_shutdown(void)
◆ cuptid_thread_info_create()
Definition at line 86 of file cupti_dispatch.c.
87{
89}
int cuptic_ctxarr_create(cuptic_info_t *pinfo)
◆ cuptid_thread_info_destroy()
Definition at line 91 of file cupti_dispatch.c.
92{
94}
int cuptic_ctxarr_destroy(cuptic_info_t *pinfo)