PAPI 7.1.0.0
Loading...
Searching...
No Matches
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

◆ MAX_LABELS

#define MAX_LABELS   101

Definition at line 6 of file fake_mx_counters.c.

Function Documentation

◆ main()

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 i
char labels[MAX_LABELS][100]
#define MAX_LABELS
FILE * fff[MAX_EVENTS]
int fclose(FILE *__stream)
Here is the call graph for this function:

Variable Documentation

◆ labels

char labels[MAX_LABELS][100]

Definition at line 8 of file fake_mx_counters.c.