PAPI  5.4.0.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
fake_mx_counters.c File Reference
Include dependency graph for fake_mx_counters.c:

Go to the source code of this file.

Macros

#define MAX_LABELS   101
 

Functions

int main (int argc, char **argv)
 

Variables

char labels [MAX_LABELS][100]
 

Macro Definition Documentation

#define MAX_LABELS   101

Definition at line 6 of file fake_mx_counters.c.

Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 112 of file fake_mx_counters.c.

112  {
113 
114  int i,multiplier=1;
115 
116  FILE *fff;
117 
118  fff=fopen("state","r");
119  if (fff!=NULL) {
120  fscanf(fff,"%d",&multiplier);
121  fclose(fff);
122  }
123 
124  fff=fopen("state","w");
125  if (fff!=NULL) {
126  fprintf(fff,"%d\n",multiplier+1);
127  fclose(fff);
128  }
129 
130  printf("1 ports\n");
131  for(i=0;i<MAX_LABELS;i++) {
132  printf("%s:%12d (%#x)\n",labels[i],i*multiplier,i*multiplier);
133  }
134  return 0;
135 }
int multiplier
Definition: iozone.c:1539
fclose(thread_wqfd)
#define printf
Definition: papi_test.h:125
FILE * fff[MAX_EVENTS]
int i
Definition: fileop.c:140
#define MAX_LABELS
char labels[MAX_LABELS][100]

Here is the call graph for this function:

Variable Documentation

char labels[MAX_LABELS][100]

Definition at line 8 of file fake_mx_counters.c.