PAPI 7.1.0.0
Loading...
Searching...
No Matches
papi_vector.h File Reference

Go to the source code of this file.

Data Structures

struct  cmp_struct_sizes_t
 
struct  papi_vector_t
 
struct  papi_os_vector_t
 

Functions

int _papi_hwi_innoculate_vector (papi_vector_t *v)
 
int _papi_hwi_innoculate_os_vector (papi_os_vector_t *v)
 

Variables

papi_vector_t_papi_hwd []
 
papi_os_vector_t _papi_os_vector
 

Function Documentation

◆ _papi_hwi_innoculate_os_vector()

int _papi_hwi_innoculate_os_vector ( papi_os_vector_t v)

Definition at line 200 of file papi_vector.c.

201{
202 if ( !v )
203 return ( PAPI_EINVAL );
204
205 if ( !v->get_real_cycles )
207 if ( !v->get_real_usec )
209 if ( !v->get_real_nsec )
211 if ( !v->get_virt_cycles )
213 if ( !v->get_virt_usec )
215 if ( !v->get_virt_nsec )
217
218 if ( !v->update_shlib_info )
219 v->update_shlib_info = ( int ( * )( papi_mdi_t * ) ) vec_int_dummy;
220 if ( !v->get_system_info )
221 v->get_system_info = ( int ( * )( ) ) vec_int_dummy;
222
223 if ( !v->get_memory_info )
224 v->get_memory_info =
225 ( int ( * )( PAPI_hw_info_t *, int ) ) vec_int_dummy;
226
227 if ( !v->get_dmem_info )
229
230 return PAPI_OK;
231}
#define PAPI_OK
Definition: f90papi.h:73
#define PAPI_EINVAL
Definition: f90papi.h:115
long long vec_virt_cycles(void)
Definition: papi_vector.c:89
long long vec_virt_nsec_dummy(void)
Definition: papi_vector.c:101
long long vec_real_nsec_dummy(void)
Definition: papi_vector.c:95
long long vec_long_long_dummy()
Definition: papi_vector.c:64
int vec_int_dummy()
Definition: papi_vector.c:46
int
Definition: sde_internal.h:89
A pointer to the following is passed to PAPI_get_dmem_info()
Definition: papi.h:865
Hardware info structure.
Definition: papi.h:774
long long(* get_virt_nsec)(void)
Definition: papi_vector.h:66
int(* get_system_info)(papi_mdi_t *mdi)
Definition: papi_vector.h:68
int(* get_memory_info)(PAPI_hw_info_t *, int)
Definition: papi_vector.h:69
long long(* get_real_nsec)(void)
Definition: papi_vector.h:65
long long(* get_virt_usec)(void)
Definition: papi_vector.h:64
int(* get_dmem_info)(PAPI_dmem_info_t *)
Definition: papi_vector.h:70
int(* update_shlib_info)(papi_mdi_t *mdi)
Definition: papi_vector.h:67
long long(* get_real_usec)(void)
Definition: papi_vector.h:63
long long(* get_virt_cycles)(void)
Definition: papi_vector.h:62
long long(* get_real_cycles)(void)
Definition: papi_vector.h:61
Here is the call graph for this function:
Here is the caller graph for this function:

◆ _papi_hwi_innoculate_vector()

int _papi_hwi_innoculate_vector ( papi_vector_t v)

Definition at line 109 of file papi_vector.c.

110{
111 if ( !v )
112 return ( PAPI_EINVAL );
113
114 /* component function pointers */
115 if ( !v->dispatch_timer )
116 v->dispatch_timer =
117 ( void ( * )( int, hwd_siginfo_t *, void * ) ) vec_void_dummy;
118 if ( !v->get_overflow_address )
120 ( void *( * )( int, char *, int ) ) vec_void_star_dummy;
121 if ( !v->start )
122 v->start = ( int ( * )( hwd_context_t *, hwd_control_state_t * ) )
124 if ( !v->stop )
125 v->stop = ( int ( * )( hwd_context_t *, hwd_control_state_t * ) )
127 if ( !v->read )
128 v->read = ( int ( * )
129 ( hwd_context_t *, hwd_control_state_t *, long long **,
130 int ) ) vec_int_dummy;
131 if ( !v->reset )
132 v->reset = ( int ( * )( hwd_context_t *, hwd_control_state_t * ) )
134 if ( !v->write )
135 v->write =
136 ( int ( * )( hwd_context_t *, hwd_control_state_t *, long long[] ) )
138 if ( !v->cleanup_eventset )
140 if ( !v->stop_profiling )
141 v->stop_profiling =
143 if ( !v->init_component )
144 v->init_component = ( int ( * )( int ) ) vec_int_ok_dummy;
145 if ( !v->init_thread )
146 v->init_thread = ( int ( * )( hwd_context_t * ) ) vec_int_ok_dummy;
147 if ( !v->init_control_state )
149 ( int ( * )( hwd_control_state_t * ptr ) ) vec_int_dummy;
150 if ( !v->update_control_state )
151 v->update_control_state = ( int ( * )
154 if ( !v->ctl )
155 v->ctl = ( int ( * )( hwd_context_t *, int, _papi_int_option_t * ) )
157 if ( !v->set_overflow )
158 v->set_overflow =
159 ( int ( * )( EventSetInfo_t *, int, int ) ) vec_int_dummy;
160 if ( !v->set_profile )
161 v->set_profile =
162 ( int ( * )( EventSetInfo_t *, int, int ) ) vec_int_dummy;
163
164 if ( !v->set_domain )
165 v->set_domain =
167 if ( !v->ntv_enum_events )
168 v->ntv_enum_events = ( int ( * )( unsigned int *, int ) ) vec_int_dummy;
169 if ( !v->ntv_name_to_code )
171 ( int ( * )( const char *, unsigned int * ) ) vec_int_dummy;
172 if ( !v->ntv_code_to_name )
174 ( int ( * )( unsigned int, char *, int ) ) vec_int_dummy;
175 if ( !v->ntv_code_to_descr )
177 ( int ( * )( unsigned int, char *, int ) ) vec_int_ok_dummy;
178 if ( !v->ntv_code_to_bits )
180 ( int ( * )( unsigned int, hwd_register_t * ) ) vec_int_dummy;
181 if ( !v->ntv_code_to_info )
183 ( int ( * )( unsigned int, PAPI_event_info_t * ) ) vec_int_dummy;
184
185 if ( !v->allocate_registers )
187 ( int ( * )( EventSetInfo_t * ) ) vec_int_ok_dummy;
188
189 if ( !v->shutdown_thread )
191 if ( !v->shutdown_component )
192 v->shutdown_component = ( int ( * )( void ) ) vec_int_ok_dummy;
193 if ( !v->user )
194 v->user = ( int ( * )( int, void *, void * ) ) vec_int_dummy;
195 return PAPI_OK;
196}
void * vec_void_star_dummy()
Definition: papi_vector.c:52
int vec_int_ok_dummy()
Definition: papi_vector.c:34
void vec_void_dummy()
Definition: papi_vector.c:58
int(* shutdown_component)(void)
Definition: papi_vector.h:54
int(* reset)(hwd_context_t *, hwd_control_state_t *)
Definition: papi_vector.h:31
int(* write)(hwd_context_t *, hwd_control_state_t *, long long[])
Definition: papi_vector.h:32
int(* ntv_code_to_bits)(unsigned int, hwd_register_t *)
Definition: papi_vector.h:47
int(* user)(int, void *, void *)
Definition: papi_vector.h:55
int(* set_profile)(EventSetInfo_t *, int, int)
Definition: papi_vector.h:41
int(* update_control_state)(hwd_control_state_t *, NativeInfo_t *, int, hwd_context_t *)
Definition: papi_vector.h:38
int(* init_component)(int)
Definition: papi_vector.h:35
int(* shutdown_thread)(hwd_context_t *)
Definition: papi_vector.h:53
int(* ntv_enum_events)(unsigned int *, int)
Definition: papi_vector.h:43
int(* cleanup_eventset)(hwd_control_state_t *)
Definition: papi_vector.h:33
int(* start)(hwd_context_t *, hwd_control_state_t *)
Definition: papi_vector.h:28
int(* ctl)(hwd_context_t *, int, _papi_int_option_t *)
Definition: papi_vector.h:39
int(* ntv_code_to_name)(unsigned int, char *, int)
Definition: papi_vector.h:45
int(* stop_profiling)(ThreadInfo_t *, EventSetInfo_t *)
Definition: papi_vector.h:34
int(* stop)(hwd_context_t *, hwd_control_state_t *)
Definition: papi_vector.h:29
int(* allocate_registers)(EventSetInfo_t *)
Definition: papi_vector.h:49
int(* init_control_state)(hwd_control_state_t *ptr)
Definition: papi_vector.h:37
int(* init_thread)(hwd_context_t *)
Definition: papi_vector.h:36
int(* set_overflow)(EventSetInfo_t *, int, int)
Definition: papi_vector.h:40
int(* read)(hwd_context_t *, hwd_control_state_t *, long long **, int)
Definition: papi_vector.h:30
int(* ntv_name_to_code)(const char *, unsigned int *)
Definition: papi_vector.h:44
void(* dispatch_timer)(int, hwd_siginfo_t *, void *)
Definition: papi_vector.h:26
int(* ntv_code_to_descr)(unsigned int, char *, int)
Definition: papi_vector.h:46
void *(* get_overflow_address)(int, char *, int)
Definition: papi_vector.h:27
int(* set_domain)(hwd_control_state_t *, int)
Definition: papi_vector.h:42
int(* ntv_code_to_info)(unsigned int, PAPI_event_info_t *)
Definition: papi_vector.h:48
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ _papi_hwd

papi_vector_t* _papi_hwd[]
extern

Definition at line 10 of file components_config.h.

◆ _papi_os_vector

papi_os_vector_t _papi_os_vector
extern

Definition at line 1288 of file aix.c.