FreeBSD/tools/tools/nxge/xge_log.c
/**
 * xge_print_registers
 * Prints/logs Register values
 *
 * @registers Register values
 */
xge_print_registers
Prints/logs Register values

@registers Register values
xge_print_registers Prints / logs Register values @registers Register values
void
xge_print_registers(void * registers)
{
	int index = 0;
	fdAll = fopen("reginfo.log", "w+");
	if(!fdAll)
	    goto _exit;
	XGE_PRINT_HEADER_REGS(fdAll);
	for(index = 0; index < XGE_COUNT_REGS; index++) {
	    regInfo[index].value = *((u64 *)((unsigned char *)registers +
	        regInfo[index].offset));
	    XGE_PRINT_REGS(fdAll,(const char *) regInfo[index].name,
	        regInfo[index].offset, regInfo[index].value);
	}
	XGE_PRINT_LINE(fdAll);
	fclose(fdAll);
_exit:
	return;
}
void xge_print_registers ( void * registers ) { int index = 0 ; fdAll = fopen ( " " , " " ) ; if ( ! fdAll ) goto _exit ; XGE_PRINT_HEADER_REGS ( fdAll ) ; for ( index = 0 ; index < XGE_COUNT_REGS ; index ++ ) { regInfo [ index ] . value = * ( ( u64 * ) ( ( unsigned char * ) registers + regInfo [ index ] . offset ) ) ; XGE_PRINT_REGS ( fdAll , ( const char * ) regInfo [ index ] . name , regInfo [ index ] . offset , regInfo [ index ] . value ) ; } XGE_PRINT_LINE ( fdAll ) ; fclose ( fdAll ) ; _exit : return ; }
xge_print_registers
 Prints/logs Register values
xge_print_registers Prints / logs Register values