/demos/trunk/loader/event_gen.c |
---|
159,9 → 159,7 |
if (file_event_header == NULL) return 1; |
fprintf(file_event_header,"struct timespec total_time = {%d,%d};\n\n",total->tv_sec,total->tv_nsec); |
fprintf(file_event_header,"int cal_cycles = 0;\n\n"); |
fclose(file_event_header); |
return 0; |
/demos/trunk/loader/nload.c |
---|
17,7 → 17,7 |
/* Activate task output debug */ |
#define TASK_OUTPUT |
extern int cal_cycles; //Calibration const, it converts usec to cycles |
int cal_cycles = 0; //Calibration const, it converts usec to cycles |
struct timespec zero_time; //Zero time of the simulation |
extern struct loader_task loader_task_list[]; //Loader task array |
extern int total_loader_task; //Loader task number |
/demos/trunk/loader/shark.c |
---|
13,8 → 13,6 |
long long i; |
struct timespec start,end,diff; |
if (cal_cycles != 0) return; |
kern_cli(); |
kern_gettime(&start); |
for (i=0;i<CALIBRATION_DELTA;i++) |