fake_mx_counters.c File Reference

Include dependency graph for fake_mx_counters.c:

Go to the source code of this file.

Defines

#define MAX_LABELS   101

Functions

int main (int argc, char **argv)

Variables

char labels [MAX_LABELS][100]

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

00112                                 {
00113   
00114   int i,multiplier=1;
00115 
00116   FILE *fff;
00117 
00118   fff=fopen("state","r");
00119   if (fff!=NULL) {
00120     fscanf(fff,"%d",&multiplier);
00121     fclose(fff);
00122   }
00123 
00124   fff=fopen("state","w");
00125   if (fff!=NULL) {
00126     fprintf(fff,"%d\n",multiplier+1);
00127     fclose(fff);
00128   }
00129 
00130   printf("1 ports\n");
00131   for(i=0;i<MAX_LABELS;i++) {
00132     printf("%s:%12d (%#x)\n",labels[i],i*multiplier,i*multiplier);
00133   }
00134   return 0;
00135 }


Variable Documentation

char labels[MAX_LABELS][100]

Definition at line 8 of file fake_mx_counters.c.


Generated on 26 Jan 2016 for PAPI by  doxygen 1.6.1