papi_vector.c File Reference

Include dependency graph for papi_vector.c:

Go to the source code of this file.

Functions

void _vectors_error ()
int vec_int_ok_dummy ()
int vec_int_one_dummy ()
int vec_int_dummy ()
void * vec_void_star_dummy ()
void vec_void_dummy ()
long long vec_long_long_dummy ()
long long vec_long_long_context_dummy (hwd_context_t *ignored)
char * vec_char_star_dummy ()
long vec_long_dummy ()
long long vec_virt_cycles (void)
long long vec_real_nsec_dummy (void)
long long vec_virt_nsec_dummy (void)
int _papi_hwi_innoculate_vector (papi_vector_t *v)
int _papi_hwi_innoculate_os_vector (papi_os_vector_t *v)

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:

void _vectors_error (  ) 

Definition at line 27 of file papi_vector.c.

00028 {
00029     SUBDBG( "function is not implemented in the component!\n" );
00030     exit( PAPI_ECMP );
00031 }

Here is the call graph for this function:

char* vec_char_star_dummy (  ) 

Definition at line 78 of file papi_vector.c.

00079 {
00080     return NULL;
00081 }

int vec_int_dummy (  ) 

Definition at line 46 of file papi_vector.c.

00047 {
00048     return PAPI_ECMP;
00049 }

Here is the caller graph for this function:

int vec_int_ok_dummy (  ) 

Definition at line 34 of file papi_vector.c.

00035 {
00036     return PAPI_OK;
00037 }

Here is the caller graph for this function:

int vec_int_one_dummy (  ) 

Definition at line 40 of file papi_vector.c.

00041 {
00042     return 1;
00043 }

long vec_long_dummy (  ) 

Definition at line 84 of file papi_vector.c.

00085 {
00086     return PAPI_ECMP;
00087 }

long long vec_long_long_context_dummy ( hwd_context_t ignored  ) 

Definition at line 70 of file papi_vector.c.

00071 {
00072         (void) ignored;
00073 
00074     return PAPI_ECMP;
00075 }

long long vec_long_long_dummy (  ) 

Definition at line 64 of file papi_vector.c.

00065 {
00066     return PAPI_ECMP;
00067 }

Here is the caller graph for this function:

long long vec_real_nsec_dummy ( void   ) 

Definition at line 95 of file papi_vector.c.

00096 {
00097   return ((long long) _papi_os_vector.get_real_usec() * 1000);
00098 
00099 }

Here is the caller graph for this function:

long long vec_virt_cycles ( void   ) 

Definition at line 89 of file papi_vector.c.

00090 {
00091   return ((long long) _papi_os_vector.get_virt_usec() * 
00092       _papi_hwi_system_info.hw_info.cpu_max_mhz);
00093 }

Here is the caller graph for this function:

long long vec_virt_nsec_dummy ( void   ) 

Definition at line 101 of file papi_vector.c.

00102 {
00103   return ((long long) _papi_os_vector.get_virt_usec() * 1000);
00104 
00105 }

Here is the caller graph for this function:

void vec_void_dummy (  ) 

Definition at line 58 of file papi_vector.c.

00059 {
00060     return;
00061 }

Here is the caller graph for this function:

void* vec_void_star_dummy (  ) 

Definition at line 52 of file papi_vector.c.

00053 {
00054     return NULL;
00055 }

Here is the caller graph for this function:


Generated on 17 Nov 2016 for PAPI by  doxygen 1.6.1