Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 1251 → Rev 1252

/demos/trunk/loader/shark.c
13,6 → 13,8
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++)
/demos/trunk/loader/event_gen.c
159,7 → 159,9
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
 
int cal_cycles = 0; //Calibration const, it converts usec to cycles
extern int cal_cycles; //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