PAPI 7.1.0.0
Loading...
Searching...
No Matches
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

◆ _papi_hwi_innoculate_os_vector()

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 )
229
230 return PAPI_OK;
231}
#define PAPI_OK
Definition: f90papi.h:73
#define PAPI_EINVAL
Definition: f90papi.h:115
long long vec_virt_cycles(void)
Definition: papi_vector.c:89
long long vec_virt_nsec_dummy(void)
Definition: papi_vector.c:101
long long vec_real_nsec_dummy(void)
Definition: papi_vector.c:95
long long vec_long_long_dummy()
Definition: papi_vector.c:64
int vec_int_dummy()
Definition: papi_vector.c:46
int
Definition: sde_internal.h:89
A pointer to the following is passed to PAPI_get_dmem_info()
Definition: papi.h:865
Hardware info structure.
Definition: papi.h:774
long long(* get_virt_nsec)(void)
Definition: papi_vector.h:66
int(* get_system_info)(papi_mdi_t *mdi)
Definition: papi_vector.h:68
int(* get_memory_info)(PAPI_hw_info_t *, int)
Definition: papi_vector.h:69
long long(* get_real_nsec)(void)
Definition: papi_vector.h:65
long long(* get_virt_usec)(void)
Definition: papi_vector.h:64
int(* get_dmem_info)(PAPI_dmem_info_t *)
Definition: papi_vector.h:70
int(* update_shlib_info)(papi_mdi_t *mdi)
Definition: papi_vector.h:67
long long(* get_real_usec)(void)
Definition: papi_vector.h:63
long long(* get_virt_cycles)(void)
Definition: papi_vector.h:62
long long(* get_real_cycles)(void)
Definition: papi_vector.h:61
Here is the call graph for this function:
Here is the caller graph for this function:

◆ _papi_hwi_innoculate_vector()

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 )
140 if ( !v->stop_profiling )
141 v->stop_profiling =
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 )
149 ( int ( * )( hwd_control_state_t * ptr ) ) vec_int_dummy;
150 if ( !v->update_control_state )
151 v->update_control_state = ( int ( * )
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 =
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 )
171 ( int ( * )( const char *, unsigned int * ) ) vec_int_dummy;
172 if ( !v->ntv_code_to_name )
174 ( int ( * )( unsigned int, char *, int ) ) vec_int_dummy;
175 if ( !v->ntv_code_to_descr )
177 ( int ( * )( unsigned int, char *, int ) ) vec_int_ok_dummy;
178 if ( !v->ntv_code_to_bits )
180 ( int ( * )( unsigned int, hwd_register_t * ) ) vec_int_dummy;
181 if ( !v->ntv_code_to_info )
183 ( int ( * )( unsigned int, PAPI_event_info_t * ) ) vec_int_dummy;
184
185 if ( !v->allocate_registers )
187 ( int ( * )( EventSetInfo_t * ) ) vec_int_ok_dummy;
188
189 if ( !v->shutdown_thread )
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}
void * vec_void_star_dummy()
Definition: papi_vector.c:52
int vec_int_ok_dummy()
Definition: papi_vector.c:34
void vec_void_dummy()
Definition: papi_vector.c:58
int(* shutdown_component)(void)
Definition: papi_vector.h:54
int(* reset)(hwd_context_t *, hwd_control_state_t *)
Definition: papi_vector.h:31
int(* write)(hwd_context_t *, hwd_control_state_t *, long long[])
Definition: papi_vector.h:32
int(* ntv_code_to_bits)(unsigned int, hwd_register_t *)
Definition: papi_vector.h:47
int(* user)(int, void *, void *)
Definition: papi_vector.h:55
int(* set_profile)(EventSetInfo_t *, int, int)
Definition: papi_vector.h:41
int(* update_control_state)(hwd_control_state_t *, NativeInfo_t *, int, hwd_context_t *)
Definition: papi_vector.h:38
int(* init_component)(int)
Definition: papi_vector.h:35
int(* shutdown_thread)(hwd_context_t *)
Definition: papi_vector.h:53
int(* ntv_enum_events)(unsigned int *, int)
Definition: papi_vector.h:43
int(* cleanup_eventset)(hwd_control_state_t *)
Definition: papi_vector.h:33
int(* start)(hwd_context_t *, hwd_control_state_t *)
Definition: papi_vector.h:28
int(* ctl)(hwd_context_t *, int, _papi_int_option_t *)
Definition: papi_vector.h:39
int(* ntv_code_to_name)(unsigned int, char *, int)
Definition: papi_vector.h:45
int(* stop_profiling)(ThreadInfo_t *, EventSetInfo_t *)
Definition: papi_vector.h:34
int(* stop)(hwd_context_t *, hwd_control_state_t *)
Definition: papi_vector.h:29
int(* allocate_registers)(EventSetInfo_t *)
Definition: papi_vector.h:49
int(* init_control_state)(hwd_control_state_t *ptr)
Definition: papi_vector.h:37
int(* init_thread)(hwd_context_t *)
Definition: papi_vector.h:36
int(* set_overflow)(EventSetInfo_t *, int, int)
Definition: papi_vector.h:40
int(* read)(hwd_context_t *, hwd_control_state_t *, long long **, int)
Definition: papi_vector.h:30
int(* ntv_name_to_code)(const char *, unsigned int *)
Definition: papi_vector.h:44
void(* dispatch_timer)(int, hwd_siginfo_t *, void *)
Definition: papi_vector.h:26
int(* ntv_code_to_descr)(unsigned int, char *, int)
Definition: papi_vector.h:46
void *(* get_overflow_address)(int, char *, int)
Definition: papi_vector.h:27
int(* set_domain)(hwd_control_state_t *, int)
Definition: papi_vector.h:42
int(* ntv_code_to_info)(unsigned int, PAPI_event_info_t *)
Definition: papi_vector.h:48
Here is the call graph for this function:
Here is the caller graph for this function:

◆ _vectors_error()

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: f90papi.h:214
#define SUBDBG(format, args...)
Definition: papi_debug.h:64

◆ vec_char_star_dummy()

char * vec_char_star_dummy ( )

Definition at line 78 of file papi_vector.c.

79{
80 return NULL;
81}

◆ vec_int_dummy()

int vec_int_dummy ( )

Definition at line 46 of file papi_vector.c.

47{
48 return PAPI_ECMP;
49}
Here is the caller graph for this function:

◆ vec_int_ok_dummy()

int vec_int_ok_dummy ( )

Definition at line 34 of file papi_vector.c.

35{
36 return PAPI_OK;
37}
Here is the caller graph for this function:

◆ vec_int_one_dummy()

int vec_int_one_dummy ( )

Definition at line 40 of file papi_vector.c.

41{
42 return 1;
43}

◆ vec_long_dummy()

long vec_long_dummy ( )

Definition at line 84 of file papi_vector.c.

85{
86 return PAPI_ECMP;
87}

◆ vec_long_long_context_dummy()

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}

◆ vec_long_long_dummy()

long long vec_long_long_dummy ( )

Definition at line 64 of file papi_vector.c.

65{
66 return PAPI_ECMP;
67}
Here is the caller graph for this function:

◆ vec_real_nsec_dummy()

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}
papi_os_vector_t _papi_os_vector
Definition: aix.c:1288
Here is the caller graph for this function:

◆ vec_virt_cycles()

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}
papi_mdi_t _papi_hwi_system_info
Definition: papi_internal.c:56
int cpu_max_mhz
Definition: papi.h:790
PAPI_hw_info_t hw_info
Here is the caller graph for this function:

◆ vec_virt_nsec_dummy()

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}
Here is the caller graph for this function:

◆ vec_void_dummy()

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:

◆ vec_void_star_dummy()

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: