Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 1303 → Rev 1302

/demos/trunk/loader/loadfile/load.fsf
59,17 → 59,16
 
TASK SECTION
 
BT:[0]:POSIX:[1]:[0][0]:[0][0]:ACT_SINGLE([1][0]):
BT:[0]:POSIX:[1]:[0][0]:[0][0]:ACT_SINGLE([3][0]):
:EXEC_CONST([0][16000]):NO_CRIT;
 
BT:[1]:POSIX:[1]:[0][0]:[0][0]:ACT_SINGLE([2][0]):
BT:[1]:POSIX:[1]:[0][0]:[0][0]:ACT_SINGLE([4][0]):
:EXEC_CONST([0][16000]):NO_CRIT;
 
OS:[2]:POSIX:[1]:[0][0]:[0][0]:ACT_SINGLE([3][0]):
OS:[2]:POSIX:[1]:[0][0]:[0][0]:ACT_SINGLE([5][0]):
:EXEC_CONST([1][0]):NO_CRIT;
 
BT:[3]:POSIX:[10]:[0][0]:[0][0]:ACT_SINGLE([4][0]):
BT:[3]:POSIX:[10]:[0][0]:[0][0]:ACT_SINGLE([6][0]):
:EXEC_CONST([0][20000]):NO_CRIT;
 
END
 
/demos/trunk/loader/shark/shark.c
18,17 → 18,11
if (cal_cycles != 0) return 0;
 
kern_cli();
__asm__ __volatile__ ("xorl %%eax,%%eax\n\t"
"cpuid\n\t"
:::"eax","ebx","ecx","edx");
kern_gettime(&start);
for (i=0;i<CALIBRATION_DELTA;i++)
__asm__ __volatile__ ("xorl %%eax,%%eax\n\t"
"cpuid\n\t"
:::"eax","ebx","ecx","edx");
__asm__ __volatile__ ("xorl %%eax,%%eax\n\t"
"cpuid\n\t"
:::"eax","ebx","ecx","edx");
kern_gettime(&end);
kern_sti();
 
99,12 → 93,12
 
TASK finish_task() {
extern __volatile__ unsigned int TracerEventsPresent;
extern unsigned int TracerEventsPresent;
unsigned int k;
SYS_FLAGS f;
tracer_init_udp(1,"192.168.1.10","192.168.1.1");
tracer_init_udp(1,"192.168.82.46","192.168.82.20");
 
tracer_create_udp_task(NULL,80);
113,7 → 107,6
kern_frestore(f);
while(k > 0) {
f = kern_fsave();
printf_xy(0,5,WHITE,"REM = %08d",k);
k = TracerEventsPresent;
kern_frestore(f);
}