|
PAPI
5.0.1.0
|

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 |
Definition in file papi_vector.h.
| int _papi_hwi_innoculate_os_vector | ( | papi_os_vector_t * | v | ) |
< Invalid argument
< No error
Definition at line 200 of file papi_vector.c.
{
if ( !v )
return ( PAPI_EINVAL );
if ( !v->get_real_cycles )
v->get_real_cycles = vec_long_long_dummy;
if ( !v->get_real_usec )
v->get_real_usec = vec_long_long_dummy;
if ( !v->get_real_nsec )
v->get_real_nsec = vec_real_nsec_dummy;
if ( !v->get_virt_cycles )
v->get_virt_cycles = vec_virt_cycles;
if ( !v->get_virt_usec )
v->get_virt_usec = vec_long_long_dummy;
if ( !v->get_virt_nsec )
v->get_virt_nsec = vec_virt_nsec_dummy;
if ( !v->update_shlib_info )
v->update_shlib_info = ( int ( * )( papi_mdi_t * ) ) vec_int_dummy;
if ( !v->get_system_info )
v->get_system_info = ( int ( * )( ) ) vec_int_dummy;
if ( !v->get_memory_info )
v->get_memory_info =
( int ( * )( PAPI_hw_info_t *, int ) ) vec_int_dummy;
if ( !v->get_dmem_info )
v->get_dmem_info = ( int ( * )( PAPI_dmem_info_t * ) ) vec_int_dummy;
return PAPI_OK;
}


| int _papi_hwi_innoculate_vector | ( | papi_vector_t * | v | ) |
< Invalid argument
< No error
Definition at line 109 of file papi_vector.c.
{
if ( !v )
return ( PAPI_EINVAL );
/* component function pointers */
if ( !v->dispatch_timer )
v->dispatch_timer =
( void ( * )( int, hwd_siginfo_t *, void * ) ) vec_void_dummy;
if ( !v->get_overflow_address )
v->get_overflow_address =
( void *( * )( int, char *, int ) ) vec_void_star_dummy;
if ( !v->start )
v->start = ( int ( * )( hwd_context_t *, hwd_control_state_t * ) )
vec_int_dummy;
if ( !v->stop )
v->stop = ( int ( * )( hwd_context_t *, hwd_control_state_t * ) )
vec_int_dummy;
if ( !v->read )
v->read = ( int ( * )
( hwd_context_t *, hwd_control_state_t *, long long **,
int ) ) vec_int_dummy;
if ( !v->reset )
v->reset = ( int ( * )( hwd_context_t *, hwd_control_state_t * ) )
vec_int_dummy;
if ( !v->write )
v->write =
( int ( * )( hwd_context_t *, hwd_control_state_t *, long long[] ) )
vec_int_dummy;
if ( !v->cleanup_eventset )
v->cleanup_eventset = ( int ( * )( hwd_control_state_t * ) ) vec_int_ok_dummy;
if ( !v->stop_profiling )
v->stop_profiling =
( int ( * )( ThreadInfo_t *, EventSetInfo_t * ) ) vec_int_dummy;
if ( !v->init_component )
v->init_component = ( int ( * )( int ) ) vec_int_ok_dummy;
if ( !v->init_thread )
v->init_thread = ( int ( * )( hwd_context_t * ) ) vec_int_ok_dummy;
if ( !v->init_control_state )
v->init_control_state =
( int ( * )( hwd_control_state_t * ptr ) ) vec_void_dummy;
if ( !v->update_control_state )
v->update_control_state = ( int ( * )
( hwd_control_state_t *, NativeInfo_t *,
int, hwd_context_t * ) ) vec_int_dummy;
if ( !v->ctl )
v->ctl = ( int ( * )( hwd_context_t *, int, _papi_int_option_t * ) )
vec_int_dummy;
if ( !v->set_overflow )
v->set_overflow =
( int ( * )( EventSetInfo_t *, int, int ) ) vec_int_dummy;
if ( !v->set_profile )
v->set_profile =
( int ( * )( EventSetInfo_t *, int, int ) ) vec_int_dummy;
if ( !v->set_domain )
v->set_domain =
( int ( * )( hwd_control_state_t *, int ) ) vec_int_dummy;
if ( !v->ntv_enum_events )
v->ntv_enum_events = ( int ( * )( unsigned int *, int ) ) vec_int_dummy;
if ( !v->ntv_name_to_code )
v->ntv_name_to_code =
( int ( * )( char *, unsigned int * ) ) vec_int_dummy;
if ( !v->ntv_code_to_name )
v->ntv_code_to_name =
( int ( * )( unsigned int, char *, int ) ) vec_int_dummy;
if ( !v->ntv_code_to_descr )
v->ntv_code_to_descr =
( int ( * )( unsigned int, char *, int ) ) vec_int_ok_dummy;
if ( !v->ntv_code_to_bits )
v->ntv_code_to_bits =
( int ( * )( unsigned int, hwd_register_t * ) ) vec_int_dummy;
if ( !v->ntv_code_to_info )
v->ntv_code_to_info =
( int ( * )( unsigned int, PAPI_event_info_t * ) ) vec_int_dummy;
if ( !v->allocate_registers )
v->allocate_registers =
( int ( * )( EventSetInfo_t * ) ) vec_int_ok_dummy;
if ( !v->shutdown_thread )
v->shutdown_thread = ( int ( * )( hwd_context_t * ) ) vec_int_dummy;
if ( !v->shutdown_component )
v->shutdown_component = ( int ( * )( void ) ) vec_int_ok_dummy;
if ( !v->user )
v->user = ( int ( * )( int, void *, void * ) ) vec_int_dummy;
return PAPI_OK;
}


Definition at line 14 of file components_config.h.