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

Detailed Description

Definition in file papi_vector.h.


Function Documentation

int _papi_hwi_innoculate_os_vector ( papi_os_vector_t v  ) 

Definition at line 200 of file papi_vector.c.

00201 {
00202     if ( !v )
00203         return ( PAPI_EINVAL );
00204 
00205     if ( !v->get_real_cycles )
00206         v->get_real_cycles = vec_long_long_dummy;
00207     if ( !v->get_real_usec )
00208         v->get_real_usec = vec_long_long_dummy;
00209     if ( !v->get_real_nsec )
00210         v->get_real_nsec = vec_real_nsec_dummy;
00211     if ( !v->get_virt_cycles )
00212         v->get_virt_cycles = vec_virt_cycles;
00213     if ( !v->get_virt_usec )
00214         v->get_virt_usec = vec_long_long_dummy;
00215     if ( !v->get_virt_nsec )
00216         v->get_virt_nsec = vec_virt_nsec_dummy;
00217 
00218     if ( !v->update_shlib_info )
00219         v->update_shlib_info = ( int ( * )( papi_mdi_t * ) ) vec_int_dummy;
00220     if ( !v->get_system_info )
00221         v->get_system_info = ( int ( * )(  ) ) vec_int_dummy;
00222 
00223     if ( !v->get_memory_info )
00224         v->get_memory_info =
00225             ( int ( * )( PAPI_hw_info_t *, int ) ) vec_int_dummy;
00226 
00227     if ( !v->get_dmem_info )
00228         v->get_dmem_info = ( int ( * )( PAPI_dmem_info_t * ) ) vec_int_dummy;
00229 
00230     return PAPI_OK;
00231 }

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.

00110 {
00111     if ( !v )
00112         return ( PAPI_EINVAL );
00113 
00114     /* component function pointers */
00115     if ( !v->dispatch_timer )
00116         v->dispatch_timer =
00117             ( void ( * )( int, hwd_siginfo_t *, void * ) ) vec_void_dummy;
00118     if ( !v->get_overflow_address )
00119         v->get_overflow_address =
00120             ( void *( * )( int, char *, int ) ) vec_void_star_dummy;
00121     if ( !v->start )
00122         v->start = ( int ( * )( hwd_context_t *, hwd_control_state_t * ) )
00123             vec_int_dummy;
00124     if ( !v->stop )
00125         v->stop = ( int ( * )( hwd_context_t *, hwd_control_state_t * ) )
00126             vec_int_dummy;
00127     if ( !v->read )
00128         v->read = ( int ( * )
00129                     ( hwd_context_t *, hwd_control_state_t *, long long **,
00130                       int ) ) vec_int_dummy;
00131     if ( !v->reset )
00132         v->reset = ( int ( * )( hwd_context_t *, hwd_control_state_t * ) )
00133             vec_int_dummy;
00134     if ( !v->write )
00135         v->write =
00136             ( int ( * )( hwd_context_t *, hwd_control_state_t *, long long[] ) )
00137             vec_int_dummy;
00138     if ( !v->cleanup_eventset ) 
00139         v->cleanup_eventset = ( int ( * )( hwd_control_state_t * ) ) vec_int_ok_dummy;
00140     if ( !v->stop_profiling )
00141         v->stop_profiling =
00142             ( int ( * )( ThreadInfo_t *, EventSetInfo_t * ) ) vec_int_dummy;
00143     if ( !v->init_component )
00144         v->init_component = ( int ( * )( int ) ) vec_int_ok_dummy;
00145     if ( !v->init_thread )
00146         v->init_thread = ( int ( * )( hwd_context_t * ) ) vec_int_ok_dummy;
00147     if ( !v->init_control_state )
00148         v->init_control_state =
00149             ( int ( * )( hwd_control_state_t * ptr ) ) vec_void_dummy;
00150     if ( !v->update_control_state )
00151         v->update_control_state = ( int ( * )
00152                                     ( hwd_control_state_t *, NativeInfo_t *,
00153                                       int, hwd_context_t * ) ) vec_int_dummy;
00154     if ( !v->ctl )
00155         v->ctl = ( int ( * )( hwd_context_t *, int, _papi_int_option_t * ) )
00156             vec_int_dummy;
00157     if ( !v->set_overflow )
00158         v->set_overflow =
00159             ( int ( * )( EventSetInfo_t *, int, int ) ) vec_int_dummy;
00160     if ( !v->set_profile )
00161         v->set_profile =
00162             ( int ( * )( EventSetInfo_t *, int, int ) ) vec_int_dummy;
00163 
00164     if ( !v->set_domain )
00165         v->set_domain =
00166             ( int ( * )( hwd_control_state_t *, int ) ) vec_int_dummy;
00167     if ( !v->ntv_enum_events )
00168         v->ntv_enum_events = ( int ( * )( unsigned int *, int ) ) vec_int_dummy;
00169     if ( !v->ntv_name_to_code )
00170         v->ntv_name_to_code =
00171             ( int ( * )( char *, unsigned int * ) ) vec_int_dummy;
00172     if ( !v->ntv_code_to_name )
00173         v->ntv_code_to_name =
00174             ( int ( * )( unsigned int, char *, int ) ) vec_int_dummy;
00175     if ( !v->ntv_code_to_descr )
00176         v->ntv_code_to_descr =
00177             ( int ( * )( unsigned int, char *, int ) ) vec_int_ok_dummy;
00178     if ( !v->ntv_code_to_bits )
00179         v->ntv_code_to_bits =
00180             ( int ( * )( unsigned int, hwd_register_t * ) ) vec_int_dummy;
00181     if ( !v->ntv_code_to_info )
00182         v->ntv_code_to_info =
00183             ( int ( * )( unsigned int, PAPI_event_info_t * ) ) vec_int_dummy;
00184 
00185     if ( !v->allocate_registers )
00186         v->allocate_registers =
00187             ( int ( * )( EventSetInfo_t * ) ) vec_int_ok_dummy;
00188 
00189     if ( !v->shutdown_thread )
00190         v->shutdown_thread = ( int ( * )( hwd_context_t * ) ) vec_int_dummy;
00191     if ( !v->shutdown_component )
00192         v->shutdown_component = ( int ( * )( void ) ) vec_int_ok_dummy;
00193     if ( !v->user )
00194         v->user = ( int ( * )( int, void *, void * ) ) vec_int_dummy;
00195     return PAPI_OK;
00196 }

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

Definition at line 1288 of file aix.c.


Generated on 26 Jan 2016 for PAPI by  doxygen 1.6.1