PAPI  5.3.0.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
papi_vector.h File Reference
This graph shows which files directly or indirectly include this file:

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

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 )
228  v->get_dmem_info = ( int ( * )( PAPI_dmem_info_t * ) ) vec_int_dummy;
229 
230  return PAPI_OK;
231 }
long long(* get_real_nsec)(void)
Definition: papi_vector.h:65
Hardware info structure.
Definition: papi.h:775
long long(* get_real_usec)(void)
Definition: papi_vector.h:63
int(* update_shlib_info)(papi_mdi_t *mdi)
Definition: papi_vector.h:67
return PAPI_OK
Definition: linux-nvml.c:458
long long(* get_virt_usec)(void)
Definition: papi_vector.h:64
return PAPI_EINVAL
Definition: linux-nvml.c:408
long long(* get_real_cycles)(void)
Definition: papi_vector.h:61
A pointer to the following is passed to PAPI_get_dmem_info()
Definition: papi.h:866
long long vec_virt_cycles(void)
Definition: papi_vector.c:89
int vec_int_dummy()
Definition: papi_vector.c:46
long long vec_real_nsec_dummy(void)
Definition: papi_vector.c:95
long long(* get_virt_nsec)(void)
Definition: papi_vector.h:66
long long vec_virt_nsec_dummy(void)
Definition: papi_vector.c:101
int(* get_system_info)(papi_mdi_t *mdi)
Definition: papi_vector.h:68
long long(* get_virt_cycles)(void)
Definition: papi_vector.h:62
int
Definition: iozone.c:18528
long long vec_long_long_dummy()
Definition: papi_vector.c:64
int(* get_dmem_info)(PAPI_dmem_info_t *)
Definition: papi_vector.h:70
int(* get_memory_info)(PAPI_hw_info_t *, int)
Definition: papi_vector.h:69

Here is the call graph for this function:

Here is the caller graph for this function:

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 )
139  v->cleanup_eventset = ( int ( * )( hwd_control_state_t * ) ) vec_int_ok_dummy;
140  if ( !v->stop_profiling )
141  v->stop_profiling =
142  ( int ( * )( ThreadInfo_t *, EventSetInfo_t * ) ) vec_int_dummy;
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 )
148  v->init_control_state =
149  ( int ( * )( hwd_control_state_t * ptr ) ) vec_void_dummy;
150  if ( !v->update_control_state )
151  v->update_control_state = ( int ( * )
152  ( hwd_control_state_t *, NativeInfo_t *,
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 =
166  ( int ( * )( hwd_control_state_t *, int ) ) vec_int_dummy;
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 )
170  v->ntv_name_to_code =
171  ( int ( * )( char *, unsigned int * ) ) vec_int_dummy;
172  if ( !v->ntv_code_to_name )
173  v->ntv_code_to_name =
174  ( int ( * )( unsigned int, char *, int ) ) vec_int_dummy;
175  if ( !v->ntv_code_to_descr )
176  v->ntv_code_to_descr =
177  ( int ( * )( unsigned int, char *, int ) ) vec_int_ok_dummy;
178  if ( !v->ntv_code_to_bits )
179  v->ntv_code_to_bits =
180  ( int ( * )( unsigned int, hwd_register_t * ) ) vec_int_dummy;
181  if ( !v->ntv_code_to_info )
182  v->ntv_code_to_info =
183  ( int ( * )( unsigned int, PAPI_event_info_t * ) ) vec_int_dummy;
184 
185  if ( !v->allocate_registers )
186  v->allocate_registers =
187  ( int ( * )( EventSetInfo_t * ) ) vec_int_ok_dummy;
188 
189  if ( !v->shutdown_thread )
190  v->shutdown_thread = ( int ( * )( hwd_context_t * ) ) vec_int_dummy;
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 }
int(* ntv_code_to_name)(unsigned int, char *, int)
Definition: papi_vector.h:45
int(* read)(hwd_context_t *, hwd_control_state_t *, long long **, int)
Definition: papi_vector.h:30
int(* init_control_state)(hwd_control_state_t *ptr)
Definition: papi_vector.h:37
int vec_int_ok_dummy()
Definition: papi_vector.c:34
return PAPI_OK
Definition: linux-nvml.c:458
void
Definition: iozone.c:18627
return PAPI_EINVAL
Definition: linux-nvml.c:408
int(* shutdown_thread)(hwd_context_t *)
Definition: papi_vector.h:53
void *(* get_overflow_address)(int, char *, int)
Definition: papi_vector.h:27
int(* shutdown_component)(void)
Definition: papi_vector.h:54
int(* user)(int, void *, void *)
Definition: papi_vector.h:55
int(* stop_profiling)(ThreadInfo_t *, EventSetInfo_t *)
Definition: papi_vector.h:34
int(* write)(hwd_context_t *, hwd_control_state_t *, long long[])
Definition: papi_vector.h:32
int vec_int_dummy()
Definition: papi_vector.c:46
int(* start)(hwd_context_t *, hwd_control_state_t *)
Definition: papi_vector.h:28
int(* ntv_code_to_bits)(unsigned int, hwd_register_t *)
Definition: papi_vector.h:47
void vec_void_dummy()
Definition: papi_vector.c:58
int(* reset)(hwd_context_t *, hwd_control_state_t *)
Definition: papi_vector.h:31
int(* allocate_registers)(EventSetInfo_t *)
Definition: papi_vector.h:49
int(* ntv_code_to_info)(unsigned int, PAPI_event_info_t *)
Definition: papi_vector.h:48
int(* ctl)(hwd_context_t *, int, _papi_int_option_t *)
Definition: papi_vector.h:39
int(* set_domain)(hwd_control_state_t *, int)
Definition: papi_vector.h:42
int(* stop)(hwd_context_t *, hwd_control_state_t *)
Definition: papi_vector.h:29
int(* cleanup_eventset)(hwd_control_state_t *)
Definition: papi_vector.h:33
int(* ntv_enum_events)(unsigned int *, int)
Definition: papi_vector.h:43
int
Definition: iozone.c:18528
int(* update_control_state)(hwd_control_state_t *, NativeInfo_t *, int, hwd_context_t *)
Definition: papi_vector.h:38
int(* ntv_name_to_code)(char *, unsigned int *)
Definition: papi_vector.h:44
int(* ntv_code_to_descr)(unsigned int, char *, int)
Definition: papi_vector.h:46
int(* init_thread)(hwd_context_t *)
Definition: papi_vector.h:36
int(* set_profile)(EventSetInfo_t *, int, int)
Definition: papi_vector.h:41
void(* dispatch_timer)(int, hwd_siginfo_t *, void *)
Definition: papi_vector.h:26
int(* init_component)(int)
Definition: papi_vector.h:35
int(* set_overflow)(EventSetInfo_t *, int, int)
Definition: papi_vector.h:40
void * vec_void_star_dummy()
Definition: papi_vector.c:52
char * ptr
Definition: iozone.c:23586

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

papi_vector_t* _papi_hwd[]

Definition at line 8 of file components_config.h.

papi_os_vector_t _papi_os_vector

Definition at line 1288 of file aix.c.