Subversion Repositories shark

Compare Revisions

Regard whitespace Rev 1520 → Rev 1519

/demos/trunk/newtrace/utils/extract.c
5,7 → 5,7
#include <string.h>
 
#define MAXCONTEXT 100
#define MAXJOB 300000
#define MAXJOB 100000
 
#define INT_CTX 1
#define INT_PID 9999
108,6 → 108,7
}
 
pclose(gnuplot_command);
 
exit(0);
 
}
893,8 → 894,6
int events_total,k,i;
int task_type;
 
unsigned long long temp_nsec;
 
srand(getpid());
 
if (argc < 2) {
907,9 → 906,10
if (argc == 3) {
skip_clk_per_msec = 1;
clk_per_msec = atoi(argv[2]);
printf("Clk/msec = %u\n\n",clk_per_msec);
}
printf("Clk/msec = %u\n\n",clk_per_msec);
events_total = create_lists(argv[1]);
 
total_tsc = log_end_tsc - log_start_tsc;
923,20 → 923,11
 
/* Remove preemption from the computation time */
create_job_list();
 
temp_nsec = 0;
for (i=0;i<job_total;i++)
temp_nsec += job_list[i].dnsec;
 
printf("Total nsec of jobs [%12llu]\n",temp_nsec);
 
temp_nsec = 0;
for (i=0;i<exec_total;i++)
temp_nsec += exec_list[i].dnsec;
printf("Total nsec of exec [%12llu]\n",temp_nsec);
printf("Total nsec considering last clk/msec [%12llu]\n",total_tsc*1000000/clk_per_msec);
 
/*
for (k=0;k<job_total;k++)
printf("Job CTX [%5d] Start [%12llu] dTSC [%12llu]\n",
job_list[k].ctx,job_list[k].start,job_list[k].dtsc);
*/
printf("\nCompute Task Statistics.... \n\n");
 
for (i=0;i<context_total;i++) {
/demos/trunk/newtrace/utils/pwcet_gen.c
146,10 → 146,6
 
switch (*(unsigned short int *)(p) & 0x00FF) {
 
case FTrace_EVT_trace_start:
printf("%d %d ",*(unsigned short int *)(p+2),*(unsigned int *)(p+12));
break;
 
case FTrace_EVT_interrupt_start:
printf("%d ",*(unsigned short int *)(p+2));
break;