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

Macros

#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
 

Macro Definition 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

void _papi_cleanup_user_events ( )

Definition at line 66 of file papi_user_events.c.

67 {
68  unsigned int i;
70  list_t *a,*b;
71 
72  for ( i = 0; i < _papi_user_events_count; i++ ) {
73  t = _papi_user_events + i;
74 
75  if ( t->short_desc != NULL )
76  free(t->short_desc);
77  if ( t->long_desc != NULL )
78  free(t->long_desc);
79 
80  }
81 
82  if ( _papi_user_events != NULL )
84 
85  _papi_user_events = NULL;
86  _papi_user_events_count = 0;
87 
88  /* cleanup the defines list too */
89  for ( a = defines.next; a != NULL; ) {
90  b=a->next;
91  papi_free(a);
92  a = b;
93  }
94 }
list_t defines
#define papi_free(a)
Definition: papi_memory.h:35
static double a[MATRIX_SIZE][MATRIX_SIZE]
Definition: rapl_basic.c:37
t
Definition: iozone.c:23562
int i
Definition: fileop.c:140
free(dummyfile[xx])
static double b[MATRIX_SIZE][MATRIX_SIZE]
Definition: rapl_basic.c:38
struct def_list * next
user_defined_event_t * _papi_user_events
unsigned int _papi_user_events_count

Here is the call graph for this function:

Here is the caller graph for this function:

int _papi_user_defined_events_setup ( char *  )

Definition at line 705 of file papi_user_events.c.

706 {
707  int retval;
708 
709  if ( first_time ) {
711  defines.next = NULL;
712  }
713 
714  retval = load_user_event_table( name );
715 
716  if (retval < 0)
717  return( retval );
718 
719  first_time = 0;
720  return( PAPI_OK );
721 }
static int load_user_event_table(char *file_name)
list_t defines
return PAPI_OK
Definition: linux-nvml.c:458
int first_time
struct def_list * next
char * name
Definition: iozone.c:23648
ssize_t retval
Definition: libasync.c:338
unsigned int _papi_user_events_count

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

user_defined_event_t* _papi_user_events

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.