PAPI  5.0.1.0
papi_user_events.h File Reference
Include dependency graph for papi_user_events.h:
This graph shows which files directly or indirectly include this file:

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 Documentation

#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.


Function Documentation

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;
  }
}

Here is the caller graph for this function:

< 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 );
}

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

Definition at line 48 of file papi_user_events.c.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines