|
PAPI
5.0.1.0
|


Go to the source code of this file.
Data Structures | |
| struct | user_defined_event_t |
Defines | |
| #define | PAPI_UE_AND_MASK 0x3FFFFFFF |
| #define | PAPI_UE_MASK ((int)0xC0000000) |
| #define | USER_EVENT_OPERATION_LEN 512 |
Functions | |
| int | _papi_user_defined_events_setup (char *) |
| void | _papi_cleanup_user_events () |
Variables | |
| user_defined_event_t * | _papi_user_events |
| unsigned int | _papi_user_events_count |
| #define PAPI_UE_AND_MASK 0x3FFFFFFF |
Definition at line 6 of file papi_user_events.h.
| #define PAPI_UE_MASK ((int)0xC0000000) |
Definition at line 7 of file papi_user_events.h.
| #define USER_EVENT_OPERATION_LEN 512 |
Definition at line 9 of file papi_user_events.h.
| void _papi_cleanup_user_events | ( | ) |
Definition at line 66 of file papi_user_events.c.
{
unsigned int i;
user_defined_event_t *t;
list_t *a,*b;
for ( i = 0; i < _papi_user_events_count; i++ ) {
t = _papi_user_events + i;
if ( t->short_desc != NULL )
free(t->short_desc);
if ( t->long_desc != NULL )
free(t->long_desc);
}
if ( _papi_user_events != NULL )
papi_free( _papi_user_events );
_papi_user_events = NULL;
_papi_user_events_count = 0;
/* cleanup the defines list too */
for ( a = defines.next; a != NULL; ) {
b=a->next;
papi_free(a);
a = b;
}
}

| int _papi_user_defined_events_setup | ( | char * | ) |
< No error
Definition at line 709 of file papi_user_events.c.
{
int retval;
if ( first_time ) {
_papi_user_events_count = 0;
defines.next = NULL;
}
retval = load_user_event_table( name );
if (retval < 0)
return( retval );
first_time = 0;
return( PAPI_OK );
}


Definition at line 47 of file papi_user_events.c.
| unsigned int _papi_user_events_count |
Definition at line 48 of file papi_user_events.c.