41,6 → 41,8 |
kern_gettime(&start); |
FTrace_enable(); |
|
TRACER_LOGEVENT(FTrace_EVT_trace_start,0,0); |
|
for (i=0;i<10;i++) |
if (proc_table[i].context != 0) TRACER_LOGEVENT(FTrace_EVT_id, |
(unsigned short int)proc_table[i].context,i); |
51,18 → 53,20 |
|
f = kern_fsave(); |
__asm__("cpuid":::"eax","ebx","ecx","edx"); |
FAST_TRACER_LOGEVENT(FTrace_EVT_ipoint,1,0); |
FAST_TRACER_LOGEVENT(FTrace_EVT_ipoint,2,0); |
FAST_TRACER_LOGEVENT(FTrace_EVT_ipoint,3,0); |
FAST_TRACER_LOGEVENT(FTrace_EVT_ipoint,4,0); |
FAST_TRACER_LOGEVENT(FTrace_EVT_ipoint,5,0); |
FAST_TRACER_LOGEVENT(FTrace_EVT_ipoint,1000,0); |
FAST_TRACER_LOGEVENT(FTrace_EVT_ipoint,2000,0); |
FAST_TRACER_LOGEVENT(FTrace_EVT_ipoint,3000,0); |
FAST_TRACER_LOGEVENT(FTrace_EVT_ipoint,4000,0); |
FAST_TRACER_LOGEVENT(FTrace_EVT_ipoint,5000,0); |
__asm__("cpuid":::"eax","ebx","ecx","edx"); |
kern_frestore(f); |
|
TRACER_LOGEVENT(FTrace_EVT_ipoint,6,0); |
TRACER_LOGEVENT(FTrace_EVT_ipoint,6000,0); |
|
for (i=0;i<1000000000;i++); |
|
TRACER_LOGEVENT(FTrace_EVT_trace_stop,0,0); |
|
FTrace_disable(); |
kern_gettime(&end); |
|