Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 533 → Rev 534

/shark/trunk/tracer/newtrace/FTrace_OSD_ll.c
71,7 → 71,7
*(DWORD *)current = (DWORD)(par1 << 16 | type);
*(DWORD *)(current + 4) = tschigh;
*(DWORD *)(current + 8) = tsclow;
*(DWORD *)(current + 16) = par2;
*(DWORD *)(current + 12) = par2;
 
*(DWORD *)(OSD_current_pointer) = current + 16;
 
103,7 → 103,6
"movl %%esi,(%%ebx)\n\t" /* Save TYPE + WORD par1 */
"movl %%edx,4(%%ebx)\n\t" /* Save TSC HIGH */
"movl %%eax,8(%%ebx)\n\t" /* Save TSC LOW */
"movl %%eax,12(%%ebx)\n\t" /* DWORD par2 */
"addl $16,(%%edi)\n\t" /* Inc Position */
"popfl\n\t"
:: "D" ((DWORD *)(OSD_current_pointer)), "S" (par1 << 16 | (type | 0x8000)));
110,3 → 109,22
 
}
 
void FTrace_dump_ipoints(void *OSD_current)
{
 
DWORD p = *(DWORD *)(OSD_current+4);
DWORD end = *(DWORD *)(OSD_current+4) + *(DWORD *)(OSD_current+8) + *(DWORD *)(OSD_current+16);
 
while (p <= end) {
 
if (*(WORD *)(p) != 0x0000) {
FTrace_printf("Event %4x TSC %8x:%8xd PAR1 %8d PAR2 %8d\n",
*(WORD *)(p),*(DWORD *)(p+4),*(DWORD *)(p+8),*(WORD *)(p+2),*(DWORD *)(p+12));
}
 
p += 16;
 
}
 
}