|
PAPI
5.0.1.0
|

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 (void *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) |
| 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;
}


| void _vectors_error | ( | ) |
< Not supported by component
Definition at line 27 of file papi_vector.c.

| char* vec_char_star_dummy | ( | ) |
Definition at line 78 of file papi_vector.c.
{
return NULL;
}
| int vec_int_dummy | ( | ) |
< Not supported by component
Definition at line 46 of file papi_vector.c.
{
return PAPI_ECMP;
}

| int vec_int_ok_dummy | ( | ) |
< No error
Definition at line 34 of file papi_vector.c.
{
return PAPI_OK;
}

| int vec_int_one_dummy | ( | ) |
Definition at line 40 of file papi_vector.c.
{
return 1;
}
| long vec_long_dummy | ( | ) |
| long long vec_long_long_context_dummy | ( | void * | ignored | ) |
< Not supported by component
Definition at line 70 of file papi_vector.c.
{
(void) ignored;
return PAPI_ECMP;
}
| long long vec_long_long_dummy | ( | ) |
< Not supported by component
Definition at line 64 of file papi_vector.c.
{
return PAPI_ECMP;
}

| long long vec_real_nsec_dummy | ( | void | ) |
Definition at line 95 of file papi_vector.c.
{
return ((long long) _papi_os_vector.get_real_usec() * 1000);
}

| long long vec_virt_cycles | ( | void | ) |
Definition at line 89 of file papi_vector.c.
{
return ((long long) _papi_os_vector.get_virt_usec() *
_papi_hwi_system_info.hw_info.cpu_max_mhz);
}

| long long vec_virt_nsec_dummy | ( | void | ) |
Definition at line 101 of file papi_vector.c.
{
return ((long long) _papi_os_vector.get_virt_usec() * 1000);
}

| void vec_void_dummy | ( | ) |
Definition at line 58 of file papi_vector.c.
{
return;
}

| void* vec_void_star_dummy | ( | ) |
Definition at line 52 of file papi_vector.c.
{
return NULL;
}
