101,8 → 101,6 |
|
TASK finish_task() { |
|
#ifdef __NEW_TRACER__ |
|
extern __volatile__ unsigned int TracerEventsPresent; |
unsigned int k; |
|
126,8 → 124,6 |
|
tracer_flush_sent_events(); |
|
#endif |
|
sys_end(); |
|
return NULL; |
144,8 → 140,6 |
|
TRACER_LOGEVENT(FTrace_EVT_trace_stop,0,0,0); |
|
#ifdef __NEW_TRACER__ |
|
tracer_disable(); |
|
cprintf("Total Events Present %d\n",TracerEventsPresent); |
164,12 → 158,6 |
|
task_activate(task_create("Finish",finish_task,&nrt,NULL)); |
|
#else |
|
sys_end(); |
|
#endif |
|
} |
|
void set_simulation_time (struct timespec *total) { |
192,14 → 180,10 |
|
i = 0; |
|
#ifdef __NEW_TRACER__ |
|
tracer_initialize(10000000); |
|
tracer_enable(); |
|
#endif |
|
TRACER_LOGEVENT(FTrace_EVT_trace_start,0,0,0); |
|
kern_gettime(&zero_time); |