PAPI  5.3.0.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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 ()
 
voidvec_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.

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:

void _vectors_error ( )

Definition at line 27 of file papi_vector.c.

28 {
29  SUBDBG( "function is not implemented in the component!\n" );
30  exit( PAPI_ECMP );
31 }
#define PAPI_ECMP
Definition: fpapi.h:109
#define SUBDBG(format, args...)
Definition: papi_debug.h:63
void exit()

Here is the call graph for this function:

char* vec_char_star_dummy ( )

Definition at line 78 of file papi_vector.c.

79 {
80  return NULL;
81 }
int vec_int_dummy ( )

Definition at line 46 of file papi_vector.c.

47 {
48  return PAPI_ECMP;
49 }
#define PAPI_ECMP
Definition: fpapi.h:109

Here is the caller graph for this function:

int vec_int_ok_dummy ( )

Definition at line 34 of file papi_vector.c.

35 {
36  return PAPI_OK;
37 }
return PAPI_OK
Definition: linux-nvml.c:458

Here is the caller graph for this function:

int vec_int_one_dummy ( )

Definition at line 40 of file papi_vector.c.

41 {
42  return 1;
43 }
long vec_long_dummy ( )

Definition at line 84 of file papi_vector.c.

85 {
86  return PAPI_ECMP;
87 }
#define PAPI_ECMP
Definition: fpapi.h:109
long long vec_long_long_context_dummy ( hwd_context_t ignored)

Definition at line 70 of file papi_vector.c.

71 {
72  (void) ignored;
73 
74  return PAPI_ECMP;
75 }
void
Definition: iozone.c:18627
#define PAPI_ECMP
Definition: fpapi.h:109
long long vec_long_long_dummy ( )

Definition at line 64 of file papi_vector.c.

65 {
66  return PAPI_ECMP;
67 }
#define PAPI_ECMP
Definition: fpapi.h:109

Here is the caller graph for this function:

long long vec_real_nsec_dummy ( void  )

Definition at line 95 of file papi_vector.c.

96 {
97  return ((long long) _papi_os_vector.get_real_usec() * 1000);
98 
99 }
long long(* get_real_usec)(void)
Definition: papi_vector.h:63
papi_os_vector_t _papi_os_vector
Definition: aix.c:1288

Here is the caller graph for this function:

long long vec_virt_cycles ( void  )

Definition at line 89 of file papi_vector.c.

90 {
91  return ((long long) _papi_os_vector.get_virt_usec() *
93 }
long long(* get_virt_usec)(void)
Definition: papi_vector.h:64
papi_os_vector_t _papi_os_vector
Definition: aix.c:1288
papi_mdi_t _papi_hwi_system_info
Definition: papi_internal.c:57
PAPI_hw_info_t hw_info
int cpu_max_mhz
Definition: papi.h:791

Here is the caller graph for this function:

long long vec_virt_nsec_dummy ( void  )

Definition at line 101 of file papi_vector.c.

102 {
103  return ((long long) _papi_os_vector.get_virt_usec() * 1000);
104 
105 }
long long(* get_virt_usec)(void)
Definition: papi_vector.h:64
papi_os_vector_t _papi_os_vector
Definition: aix.c:1288

Here is the caller graph for this function:

void vec_void_dummy ( )

Definition at line 58 of file papi_vector.c.

59 {
60  return;
61 }

Here is the caller graph for this function:

void* vec_void_star_dummy ( )

Definition at line 52 of file papi_vector.c.

53 {
54  return NULL;
55 }

Here is the caller graph for this function: