Beispiel #1
0
Datei: main.c Projekt: taysom/tau
int main (int argc, char *argv[])
{
	int i;

	Option.file_size = Local_option.size_big_file;
	Option.dir = ".";
	punyopt(argc, argv, myopt, "b:forsv");
	Local_option.size_big_file = Option.file_size;

	if (Local_option.size_big_file < 40000) {
		PrError("Size of big file, %lld, should be greater than 40K",
			Local_option.size_big_file);
		return 2;
	}
	if (Local_option.size_big_file < (1LL << 32)) {
		fprintf(stderr, "Size of big file only 0x%llx\n",
			Local_option.size_big_file);
	}
	if (argc == optind) {
		all_tests(Option.dir);
	} else for (i = optind; i < argc; i++) {
		all_tests(argv[i]);
	}
	if (Option.print) DumpRecords();
	return 0;
}
Beispiel #2
0
void LogServiceTask()
{
 iprintf("Service %d\r\n",Secs);
 if((cfd) && (!bSentBlob))
 {
  bSentBlob=true;
  bBlock=true;
  DumpRecords();
  bBlock=false;
 }
}
Beispiel #3
0
void InitLog()
{
    IoExpands[0].extra = 0;
    IoExpands[0].read =  null_stdio_read;
    IoExpands[0].write = null_stdio_write;
    IoExpands[0].close = null_stdio_close;

	IoExpands[1].extra = 0;
	IoExpands[1].read =  null_stdio_read;
	IoExpands[1].write = null_stdio_write;
	IoExpands[1].close = null_stdio_close;

	SimpleUart(LOG_UART,115200);
	writestring(LOG_UART,"Starting log\r\n");
	bBlock=true;
	DumpRecords(); 
	bBlock=false;

}