PAPI  5.0.1.0
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 [101][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.

                                {
  
  int i,multiplier=1;

  FILE *fff;

  fff=fopen("state","r");
  if (fff!=NULL) {
    fscanf(fff,"%d",&multiplier);
    fclose(fff);
  }

  fff=fopen("state","w");
  if (fff!=NULL) {
    fprintf(fff,"%d\n",multiplier+1);
    fclose(fff);
  }

  printf("1 ports\n");
  for(i=0;i<MAX_LABELS;i++) {
    printf("%s:%12d (0x%x)\n",labels[i],i*multiplier,i*multiplier);
  }
  return 0;
}

Variable Documentation

char labels[101][100]

Definition at line 8 of file fake_mx_counters.c.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines