|
PAPI
5.0.1.0
|

Go to the source code of this file.
Defines | |
| #define | PAPI_FCALL(function, caps, args) void function args |
Functions | |
| void | papif_accum (int *EventSet, long long *values, int *check) |
| void | papif_add_event (int *EventSet, int *Event, int *check) |
| void | papif_add_named_event (int *EventSet, char *EventName, int *check) |
| void | papif_add_events (int *EventSet, int *Events, int *number, int *check) |
| void | papif_cleanup_eventset (int *EventSet, int *check) |
| void | papif_create_eventset (int *EventSet, int *check) |
| void | papif_assign_eventset_component (int *EventSet, int *cidx, int *check) |
| void | papif_destroy_eventset (int *EventSet, int *check) |
| void | papif_get_dmem_info (long long *dest, int *check) |
| void | papif_get_exe_info (char *fullname, char *name, long long *text_start, long long *text_end, long long *data_start, long long *data_end, long long *bss_start, long long *bss_end, int *check) |
| void | papif_get_hardware_info (int *ncpu, int *nnodes, int *totalcpus, int *vendor, char *vendor_string, int *model, char *model_string, float *revision, float *mhz) |
| void | papif_num_hwctrs (int *num) |
| void | papif_num_cmp_hwctrs (int *cidx, int *num) |
| void | papif_get_real_cyc (long long *real_cyc) |
| void | papif_get_real_usec (long long *time) |
| void | papif_get_real_nsec (long long *time) |
| void | papif_get_virt_cyc (long long *virt_cyc) |
| void | papif_get_virt_usec (long long *time) |
| void | papif_is_initialized (int *level) |
| void | papif_library_init (int *check) |
| void | papif_thread_id (unsigned long *id) |
| void | papif_register_thread (int *check) |
| void | papif_unregster_thread (int *check) |
| void | papif_thread_init (unsigned long int(*handle)(void), int *check) |
| void | papif_list_events (int *EventSet, int *Events, int *number, int *check) |
| void | papif_multiplex_init (int *check) |
| void | papif_get_multiplex (int *EventSet, int *check) |
| void | papif_set_multiplex (int *EventSet, int *check) |
| void | papif_perror (char *message) |
| void | papif_query_event (int *EventCode, int *check) |
| void | papif_query_named_event (char *EventName, int *check) |
| void | papif_get_event_info (int *EventCode, char *symbol, char *long_descr, char *short_descr, int *count, char *event_note, int *flags, int *check) |
| void | papif_event_code_to_name (int *EventCode, char *out, int *check) |
| void | papif_event_name_to_code (char *in, int *out, int *check) |
| void | papif_num_events (int *EventCode, int *count) |
| void | papif_enum_event (int *EventCode, int *modifier, int *check) |
| void | papif_read (int *EventSet, long long *values, int *check) |
| void | papif_read_ts (int *EventSet, long long *values, long long *cycles, int *check) |
| void | papif_remove_event (int *EventSet, int *Event, int *check) |
| void | papif_remove_named_event (int *EventSet, char *EventName, int *check) |
| void | papif_remove_events (int *EventSet, int *Events, int *number, int *check) |
| void | papif_reset (int *EventSet, int *check) |
| void | papif_set_debug (int *debug, int *check) |
| void | papif_set_domain (int *domain, int *check) |
| void | papif_set_cmp_domain (int *domain, int *cidx, int *check) |
| void | papif_set_granularity (int *granularity, int *check) |
| void | papif_set_cmp_granularity (int *granularity, int *cidx, int *check) |
| void | papif_shutdown (void) |
| void | papif_start (int *EventSet, int *check) |
| void | papif_state (int *EventSet, int *status, int *check) |
| void | papif_stop (int *EventSet, long long *values, int *check) |
| void | papif_write (int *EventSet, long long *values, int *check) |
| void | papif_lock (int *lock, int *check) |
| void | papif_unlock (int *lock, int *check) |
| void | papif_start_counters (int *events, int *array_len, int *check) |
| void | papif_read_counters (long long *values, int *array_len, int *check) |
| void | papif_stop_counters (long long *values, int *array_len, int *check) |
| void | papif_accum_counters (long long *values, int *array_len, int *check) |
| void | papif_num_counters (int *numevents) |
| void | papif_ipc (float *rtime, float *ptime, long long *ins, float *ipc, int *check) |
| void | papif_flips (float *real_time, float *proc_time, long long *flpins, float *mflips, int *check) |
| void | papif_flops (float *real_time, float *proc_time, long long *flpops, float *mflops, int *check) |
| void | papif_get_clockrate (int *cr) |
| void | papif_get_preload (char *lib_preload_env, int *check) |
| void | papif_get_granularity (int *eventset, int *granularity, int *mode, int *check) |
| void | papif_get_domain (int *eventset, int *domain, int *mode, int *check) |
| void | papif_set_event_domain (int *es, int *domain, int *check) |
| void | papif_set_inherit (int *inherit, int *check) |
| #define PAPI_FCALL | ( | function, | |
| caps, | |||
| args | |||
| ) | void function args |
Definition at line 36 of file papi_fwrappers.c.
| void papif_accum | ( | int * | EventSet, |
| long long * | values, | ||
| int * | check | ||
| ) |
Definition at line 79 of file papi_fwrappers.c.
{
*check = PAPI_accum( *EventSet, values );
}

| void papif_accum_counters | ( | long long * | values, |
| int * | array_len, | ||
| int * | check | ||
| ) |
Definition at line 1218 of file papi_fwrappers.c.
{
*check = PAPI_accum_counters( values, *array_len );
}

| void papif_add_event | ( | int * | EventSet, |
| int * | Event, | ||
| int * | check | ||
| ) |
Definition at line 95 of file papi_fwrappers.c.
{
*check = PAPI_add_event( *EventSet, *Event );
}

| void papif_add_events | ( | int * | EventSet, |
| int * | Events, | ||
| int * | number, | ||
| int * | check | ||
| ) |
Definition at line 137 of file papi_fwrappers.c.
{
*check = PAPI_add_events( *EventSet, Events, *number );
}

| void papif_add_named_event | ( | int * | EventSet, |
| char * | EventName, | ||
| int * | check | ||
| ) |
Definition at line 120 of file papi_fwrappers.c.
{
*check = PAPI_add_named_event( *EventSet, EventName );
}

| void papif_assign_eventset_component | ( | int * | EventSet, |
| int * | cidx, | ||
| int * | check | ||
| ) |
Definition at line 185 of file papi_fwrappers.c.
{
*check = PAPI_assign_eventset_component( *EventSet, *cidx );
}

| void papif_cleanup_eventset | ( | int * | EventSet, |
| int * | check | ||
| ) |
Definition at line 153 of file papi_fwrappers.c.
{
*check = PAPI_cleanup_eventset( *EventSet );
}

| void papif_create_eventset | ( | int * | EventSet, |
| int * | check | ||
| ) |
Definition at line 169 of file papi_fwrappers.c.
{
*check = PAPI_create_eventset( EventSet );
}

| void papif_destroy_eventset | ( | int * | EventSet, |
| int * | check | ||
| ) |
Definition at line 201 of file papi_fwrappers.c.
{
*check = PAPI_destroy_eventset( EventSet );
}

| void papif_enum_event | ( | int * | EventCode, |
| int * | modifier, | ||
| int * | check | ||
| ) |
Definition at line 859 of file papi_fwrappers.c.
{
*check = PAPI_enum_event( EventCode, *modifier );
}

| void papif_event_code_to_name | ( | int * | EventCode, |
| char * | out, | ||
| int * | check | ||
| ) |
Definition at line 775 of file papi_fwrappers.c.
{
#if defined(_FORTRAN_STRLEN_AT_END)
char tmp[PAPI_MAX_STR_LEN];
int i;
*check = PAPI_event_code_to_name( *EventCode, tmp );
/* tmp has \0 within PAPI_MAX_STR_LEN chars so strncpy is safe */
strncpy( out_str, tmp, ( size_t ) out_len );
/* overwrite any NULLs and trailing garbage in out_str */
for ( i = ( int ) strlen( tmp ); i < out_len; out_str[i++] = ' ' );
#else
/* The array "out" passed by the user must be sufficiently long */
*check = PAPI_event_code_to_name( *EventCode, out );
#endif
}

| void papif_event_name_to_code | ( | char * | in, |
| int * | out, | ||
| int * | check | ||
| ) |
Definition at line 807 of file papi_fwrappers.c.
{
#if defined(_FORTRAN_STRLEN_AT_END)
int slen, i;
char tmpin[PAPI_MAX_STR_LEN];
/* What is the maximum number of chars to copy ? */
slen = in_len < PAPI_MAX_STR_LEN ? in_len : PAPI_MAX_STR_LEN;
strncpy( tmpin, in_str, ( size_t ) slen );
/* Remove trailing blanks from initial Fortran string */
for ( i = slen - 1; i > -1 && tmpin[i] == ' '; tmpin[i--] = '\0' );
/* Make sure string is NULL terminated before call */
tmpin[PAPI_MAX_STR_LEN - 1] = '\0';
if ( slen < PAPI_MAX_STR_LEN )
tmpin[slen] = '\0';
*check = PAPI_event_name_to_code( tmpin, out );
#else
/* This will have trouble if argument in is not null terminated */
*check = PAPI_event_name_to_code( in, out );
#endif
}

| void papif_flips | ( | float * | real_time, |
| float * | proc_time, | ||
| long long * | flpins, | ||
| float * | mflips, | ||
| int * | check | ||
| ) |
Definition at line 1267 of file papi_fwrappers.c.
{
*check = PAPI_flips( real_time, proc_time, flpins, mflips );
}

| void papif_flops | ( | float * | real_time, |
| float * | proc_time, | ||
| long long * | flpops, | ||
| float * | mflops, | ||
| int * | check | ||
| ) |
Definition at line 1284 of file papi_fwrappers.c.
{
*check = PAPI_flops( real_time, proc_time, flpops, mflops );
}

| void papif_get_clockrate | ( | int * | cr | ) |
< Clock rate in MHz
Definition at line 1304 of file papi_fwrappers.c.
{
*cr = PAPI_get_opt( PAPI_CLOCKRATE, NULL );
}

| void papif_get_dmem_info | ( | long long * | dest, |
| int * | check | ||
| ) |
Definition at line 218 of file papi_fwrappers.c.
{
*check = PAPI_get_dmem_info( ( PAPI_dmem_info_t * ) dest );
}

| void papif_get_domain | ( | int * | eventset, |
| int * | domain, | ||
| int * | mode, | ||
| int * | check | ||
| ) |
< Domain for all new eventsets. Takes non-NULL option pointer.
< No error
< Domain for an eventset
< No error
< Invalid argument
Definition at line 1385 of file papi_fwrappers.c.
{
PAPI_option_t d;
if ( *mode == PAPI_DEFDOM ) {
*domain = PAPI_get_opt( *mode, NULL );
*check = PAPI_OK;
} else if ( *mode == PAPI_DOMAIN ) {
d.domain.eventset = *eventset;
if ( ( *check = PAPI_get_opt( *mode, &d ) ) == PAPI_OK ) {
*domain = d.domain.domain;
}
} else {
*check = PAPI_EINVAL;
}
}

| void papif_get_event_info | ( | int * | EventCode, |
| char * | symbol, | ||
| char * | long_descr, | ||
| char * | short_descr, | ||
| int * | count, | ||
| char * | event_note, | ||
| int * | flags, | ||
| int * | check | ||
| ) |
< No error
Definition at line 717 of file papi_fwrappers.c.
{
PAPI_event_info_t info;
( void ) flags; /*Unused */
#if defined(_FORTRAN_STRLEN_AT_END)
int i;
if ( ( *check = PAPI_get_event_info( *EventCode, &info ) ) == PAPI_OK ) {
strncpy( symbol, info.symbol, ( size_t ) symbol_len );
for ( i = ( int ) strlen( info.symbol ); i < symbol_len;
symbol[i++] = ' ' );
strncpy( long_descr, info.long_descr, ( size_t ) long_descr_len );
for ( i = ( int ) strlen( info.long_descr ); i < long_descr_len;
long_descr[i++] = ' ' );
strncpy( short_descr, info.short_descr, ( size_t ) short_descr_len );
for ( i = ( int ) strlen( info.short_descr ); i < short_descr_len;
short_descr[i++] = ' ' );
*count = ( int ) info.count;
int note_len=0;
strncpy( event_note, info.note, ( size_t ) event_note_len );
note_len=strlen(info.note);
for ( i = note_len; i < event_note_len;
event_note[i++] = ' ' );
}
#else
/* printf("EventCode: %d\n", *EventCode ); -KSL */
if ( ( *check = PAPI_get_event_info( *EventCode, &info ) ) == PAPI_OK ) {
strncpy( symbol, info.symbol, PAPI_MAX_STR_LEN );
strncpy( long_descr, info.long_descr, PAPI_MAX_STR_LEN );
strncpy( short_descr, info.short_descr, PAPI_MAX_STR_LEN );
*count = info.count;
if (info.note)
strncpy( event_note, info.note,
PAPI_MAX_STR_LEN );
}
/* printf("Check: %d\n", *check); -KSL */
#endif
}

| void papif_get_exe_info | ( | char * | fullname, |
| char * | name, | ||
| long long * | text_start, | ||
| long long * | text_end, | ||
| long long * | data_start, | ||
| long long * | data_end, | ||
| long long * | bss_start, | ||
| long long * | bss_end, | ||
| int * | check | ||
| ) |
< Executable information
< No error
Definition at line 246 of file papi_fwrappers.c.
{
PAPI_option_t e;
/* WARNING: The casts from caddr_t to long below WILL BREAK on systems with
64-bit addresses. I did it here because I was lazy. And because I wanted
to get rid of those pesky gcc warnings. If you find a 64-bit system,
conditionalize the cast with (yet another) #ifdef...
*/
if ( ( *check = PAPI_get_opt( PAPI_EXEINFO, &e ) ) == PAPI_OK ) {
#if defined(_FORTRAN_STRLEN_AT_END)
int i;
strncpy( fullname, e.exe_info->fullname, ( size_t ) fullname_len );
for ( i = ( int ) strlen( e.exe_info->fullname ); i < fullname_len;
fullname[i++] = ' ' );
strncpy( name, e.exe_info->address_info.name, ( size_t ) name_len );
for ( i = ( int ) strlen( e.exe_info->address_info.name ); i < name_len;
name[i++] = ' ' );
#else
strncpy( fullname, e.exe_info->fullname, PAPI_MAX_STR_LEN );
strncpy( name, e.exe_info->address_info.name, PAPI_MAX_STR_LEN );
#endif
*text_start = ( long ) e.exe_info->address_info.text_start;
*text_end = ( long ) e.exe_info->address_info.text_end;
*data_start = ( long ) e.exe_info->address_info.data_start;
*data_end = ( long ) e.exe_info->address_info.data_end;
*bss_start = ( long ) e.exe_info->address_info.bss_start;
*bss_end = ( long ) e.exe_info->address_info.bss_end;
}
}

| void papif_get_granularity | ( | int * | eventset, |
| int * | granularity, | ||
| int * | mode, | ||
| int * | check | ||
| ) |
< Granularity for all new eventsets
< No error
< Granularity for an eventset
< No error
< Invalid argument
Definition at line 1357 of file papi_fwrappers.c.
{
PAPI_option_t g;
if ( *mode == PAPI_DEFGRN ) {
*granularity = PAPI_get_opt( *mode, &g );
*check = PAPI_OK;
} else if ( *mode == PAPI_GRANUL ) {
g.granularity.eventset = *eventset;
if ( ( *check = PAPI_get_opt( *mode, &g ) ) == PAPI_OK ) {
*granularity = g.granularity.granularity;
}
} else {
*check = PAPI_EINVAL;
}
}

| void papif_get_hardware_info | ( | int * | ncpu, |
| int * | nnodes, | ||
| int * | totalcpus, | ||
| int * | vendor, | ||
| char * | vendor_string, | ||
| int * | model, | ||
| char * | model_string, | ||
| float * | revision, | ||
| float * | mhz | ||
| ) |
Definition at line 314 of file papi_fwrappers.c.
{
const PAPI_hw_info_t *hwinfo;
int i;
hwinfo = PAPI_get_hardware_info( );
if ( hwinfo == NULL ) {
*ncpu = 0;
*nnodes = 0;
*totalcpus = 0;
*vendor = 0;
*model = 0;
*revision = 0;
*mhz = 0;
} else {
*ncpu = hwinfo->ncpu;
*nnodes = hwinfo->nnodes;
*totalcpus = hwinfo->totalcpus;
*vendor = hwinfo->vendor;
*model = hwinfo->model;
*revision = hwinfo->revision;
*mhz = hwinfo->cpu_max_mhz;
#if defined(_FORTRAN_STRLEN_AT_END)
strncpy( vendor_str, hwinfo->vendor_string, ( size_t ) vendor_len );
for ( i = ( int ) strlen( hwinfo->vendor_string ); i < vendor_len;
vendor_str[i++] = ' ' );
strncpy( model_str, hwinfo->model_string, ( size_t ) model_len );
for ( i = ( int ) strlen( hwinfo->model_string ); i < model_len;
model_str[i++] = ' ' );
#else
(void)i; /* unused... */
/* This case needs the passed strings to be of sufficient size *
* and will include the NULL character in the target string */
strcpy( vendor_string, hwinfo->vendor_string );
strcpy( model_string, hwinfo->model_string );
#endif
}
return;
}

| void papif_get_multiplex | ( | int * | EventSet, |
| int * | check | ||
| ) |
Definition at line 596 of file papi_fwrappers.c.
{
*check = PAPI_get_multiplex( *EventSet );
}

| void papif_get_preload | ( | char * | lib_preload_env, |
| int * | check | ||
| ) |
< Option to find out the environment variable that can preload libraries
< No error
Definition at line 1326 of file papi_fwrappers.c.
{
PAPI_option_t p;
#if defined(_FORTRAN_STRLEN_AT_END)
int i;
if ( ( *check = PAPI_get_opt( PAPI_PRELOAD, &p ) ) == PAPI_OK ) {
strncpy( lib_preload_env, p.preload.lib_preload_env,
( size_t ) lib_preload_env_len );
for ( i = ( int ) strlen( p.preload.lib_preload_env );
i < lib_preload_env_len; lib_preload_env[i++] = ' ' );
}
#else
if ( ( *check = PAPI_get_opt( PAPI_PRELOAD, &p ) ) == PAPI_OK ) {
strncpy( lib_preload_env, p.preload.lib_preload_env, PAPI_MAX_STR_LEN );
}
#endif
}

| void papif_get_real_cyc | ( | long long * | real_cyc | ) |
Definition at line 397 of file papi_fwrappers.c.
{
*real_cyc = PAPI_get_real_cyc( );
}

| void papif_get_real_nsec | ( | long long * | time | ) |
Definition at line 427 of file papi_fwrappers.c.
{
*time = PAPI_get_real_nsec( );
}

| void papif_get_real_usec | ( | long long * | time | ) |
Definition at line 412 of file papi_fwrappers.c.
{
*time = PAPI_get_real_usec( );
}

| void papif_get_virt_cyc | ( | long long * | virt_cyc | ) |
Definition at line 442 of file papi_fwrappers.c.
{
*virt_cyc = PAPI_get_virt_cyc( );
}

| void papif_get_virt_usec | ( | long long * | time | ) |
Definition at line 457 of file papi_fwrappers.c.
{
*time = PAPI_get_virt_usec( );
}

| void papif_ipc | ( | float * | rtime, |
| float * | ptime, | ||
| long long * | ins, | ||
| float * | ipc, | ||
| int * | check | ||
| ) |
Definition at line 1250 of file papi_fwrappers.c.
{
*check = PAPI_ipc( rtime, ptime, ins, ipc );
}

| void papif_is_initialized | ( | int * | level | ) |
Definition at line 472 of file papi_fwrappers.c.
{
*level = PAPI_is_initialized( );
}

| void papif_library_init | ( | int * | check | ) |
Definition at line 487 of file papi_fwrappers.c.
{
*check = PAPI_library_init( *check );
}

| void papif_list_events | ( | int * | EventSet, |
| int * | Events, | ||
| int * | number, | ||
| int * | check | ||
| ) |
Definition at line 565 of file papi_fwrappers.c.
{
*check = PAPI_list_events( *EventSet, Events, number );
}

| void papif_lock | ( | int * | lock, |
| int * | check | ||
| ) |
| void papif_multiplex_init | ( | int * | check | ) |
Definition at line 580 of file papi_fwrappers.c.
{
*check = PAPI_multiplex_init( );
}

| void papif_num_cmp_hwctrs | ( | int * | cidx, |
| int * | num | ||
| ) |
Definition at line 382 of file papi_fwrappers.c.
{
*num = PAPI_num_cmp_hwctrs( *cidx );
}

| void papif_num_counters | ( | int * | numevents | ) |
Definition at line 1233 of file papi_fwrappers.c.
{
*numevents = PAPI_num_counters( );
}

| void papif_num_events | ( | int * | EventCode, |
| int * | count | ||
| ) |
Definition at line 843 of file papi_fwrappers.c.
{
*count = PAPI_num_events( *EventCode );
}

| void papif_num_hwctrs | ( | int * | num | ) |
Definition at line 365 of file papi_fwrappers.c.
{
*num = PAPI_num_hwctrs( );
}

| void papif_perror | ( | char * | message | ) |
Definition at line 633 of file papi_fwrappers.c.
{
#if defined(_FORTRAN_STRLEN_AT_END)
char tmp[PAPI_MAX_STR_LEN];
Fortran2cstring( tmp, message, PAPI_MAX_STR_LEN, message_len );
PAPI_perror( tmp );
#else
PAPI_perror( message );
#endif
}

| void papif_query_event | ( | int * | EventCode, |
| int * | check | ||
| ) |
Definition at line 665 of file papi_fwrappers.c.
{
*check = PAPI_query_event( *EventCode );
}

| void papif_query_named_event | ( | char * | EventName, |
| int * | check | ||
| ) |
Definition at line 690 of file papi_fwrappers.c.
{
*check = PAPI_query_named_event( EventName );
}

| void papif_read | ( | int * | EventSet, |
| long long * | values, | ||
| int * | check | ||
| ) |
| void papif_read_counters | ( | long long * | values, |
| int * | array_len, | ||
| int * | check | ||
| ) |
Definition at line 1186 of file papi_fwrappers.c.
{
*check = PAPI_read_counters( values, *array_len );
}

| void papif_read_ts | ( | int * | EventSet, |
| long long * | values, | ||
| long long * | cycles, | ||
| int * | check | ||
| ) |
Definition at line 891 of file papi_fwrappers.c.
{
*check = PAPI_read_ts( *EventSet, values, cycles );
}

| void papif_register_thread | ( | int * | check | ) |
Definition at line 517 of file papi_fwrappers.c.
{
*check = PAPI_register_thread( );
}

| void papif_remove_event | ( | int * | EventSet, |
| int * | Event, | ||
| int * | check | ||
| ) |
Definition at line 907 of file papi_fwrappers.c.
{
*check = PAPI_remove_event( *EventSet, *Event );
}

| void papif_remove_events | ( | int * | EventSet, |
| int * | Events, | ||
| int * | number, | ||
| int * | check | ||
| ) |
Definition at line 949 of file papi_fwrappers.c.
{
*check = PAPI_remove_events( *EventSet, Events, *number );
}

| void papif_remove_named_event | ( | int * | EventSet, |
| char * | EventName, | ||
| int * | check | ||
| ) |
Definition at line 932 of file papi_fwrappers.c.
{
*check = PAPI_remove_named_event( *EventSet, EventName );
}

| void papif_reset | ( | int * | EventSet, |
| int * | check | ||
| ) |
Definition at line 964 of file papi_fwrappers.c.
{
*check = PAPI_reset( *EventSet );
}

| void papif_set_cmp_domain | ( | int * | domain, |
| int * | cidx, | ||
| int * | check | ||
| ) |
Definition at line 1010 of file papi_fwrappers.c.
{
*check = PAPI_set_cmp_domain( *domain, *cidx );
}

| void papif_set_cmp_granularity | ( | int * | granularity, |
| int * | cidx, | ||
| int * | check | ||
| ) |
Definition at line 1042 of file papi_fwrappers.c.
{
*check = PAPI_set_cmp_granularity( *granularity, *cidx );
}

| void papif_set_debug | ( | int * | debug, |
| int * | check | ||
| ) |
Definition at line 979 of file papi_fwrappers.c.
{
*check = PAPI_set_debug( *debug );
}

| void papif_set_domain | ( | int * | domain, |
| int * | check | ||
| ) |
Definition at line 994 of file papi_fwrappers.c.
{
*check = PAPI_set_domain( *domain );
}

| void papif_set_event_domain | ( | int * | es, |
| int * | domain, | ||
| int * | check | ||
| ) |
< Domain for an eventset
Definition at line 1425 of file papi_fwrappers.c.
{
PAPI_option_t d;
d.domain.domain = *domain;
d.domain.eventset = *es;
*check = PAPI_set_opt( PAPI_DOMAIN, &d );
}

| void papif_set_granularity | ( | int * | granularity, |
| int * | check | ||
| ) |
Definition at line 1026 of file papi_fwrappers.c.
{
*check = PAPI_set_granularity( *granularity );
}

| void papif_set_inherit | ( | int * | inherit, |
| int * | check | ||
| ) |
< Option to set counter inheritance flag
Definition at line 1444 of file papi_fwrappers.c.
{
PAPI_option_t i;
i.inherit.inherit = *inherit;
*check = PAPI_set_opt( PAPI_INHERIT, &i );
}

| void papif_set_multiplex | ( | int * | EventSet, |
| int * | check | ||
| ) |
Definition at line 612 of file papi_fwrappers.c.
{
*check = PAPI_set_multiplex( *EventSet );
}

| void papif_shutdown | ( | void | ) |
Definition at line 1057 of file papi_fwrappers.c.
{
PAPI_shutdown( );
}

| void papif_start | ( | int * | EventSet, |
| int * | check | ||
| ) |
Definition at line 1072 of file papi_fwrappers.c.
{
*check = PAPI_start( *EventSet );
}

| void papif_start_counters | ( | int * | events, |
| int * | array_len, | ||
| int * | check | ||
| ) |
Definition at line 1170 of file papi_fwrappers.c.
{
*check = PAPI_start_counters( events, *array_len );
}

| void papif_state | ( | int * | EventSet, |
| int * | status, | ||
| int * | check | ||
| ) |
Definition at line 1088 of file papi_fwrappers.c.
{
*check = PAPI_state( *EventSet, status );
}

| void papif_stop | ( | int * | EventSet, |
| long long * | values, | ||
| int * | check | ||
| ) |
| void papif_stop_counters | ( | long long * | values, |
| int * | array_len, | ||
| int * | check | ||
| ) |
Definition at line 1202 of file papi_fwrappers.c.
{
*check = PAPI_stop_counters( values, *array_len );
}

| void papif_thread_id | ( | unsigned long * | id | ) |
Definition at line 502 of file papi_fwrappers.c.
{
*id = PAPI_thread_id( );
}

| void papif_thread_init | ( | unsigned long int(*)(void) | handle, |
| int * | check | ||
| ) |
Definition at line 549 of file papi_fwrappers.c.
{
*check = PAPI_thread_init( handle );
}

| void papif_unlock | ( | int * | lock, |
| int * | check | ||
| ) |
Definition at line 1152 of file papi_fwrappers.c.
{
*check = PAPI_unlock( *lock );
}

| void papif_unregster_thread | ( | int * | check | ) |
Definition at line 532 of file papi_fwrappers.c.
{
*check = PAPI_unregister_thread( );
}

| void papif_write | ( | int * | EventSet, |
| long long * | values, | ||
| int * | check | ||
| ) |
Definition at line 1120 of file papi_fwrappers.c.
{
*check = PAPI_write( *EventSet, values );
}
