Home | History | Annotate | Download | only in qemu

Lines Matching defs:trace_load

119 extern TraceAddr trace_load;
128 TraceAddr trace_load;
423 trace_load.fstream = NULL;
428 trace_load.filename = fname;
435 trace_load.fstream = fstream;
436 trace_load.next = &trace_load.buffer[0];
437 trace_load.compressed_ptr = trace_load.compressed;
438 trace_load.high_water_ptr = &trace_load.compressed[kCompressedSize] - kMaxAddrCompressed;
439 trace_load.prev_addr = 0;
440 trace_load.prev_time = 0;
726 if (trace_load.fstream) {
728 char *comp_ptr = trace_load.compressed_ptr;
729 AddrRec *next = trace_load.next;
730 uint32_t prev_addr = trace_load.prev_addr;
731 uint64_t prev_time = trace_load.prev_time;
732 for (ptr = trace_load.buffer; ptr != next; ++ptr) {
733 if (comp_ptr >= trace_load.high_water_ptr) {
734 uint32_t size = comp_ptr - trace_load.compressed;
735 fwrite(trace_load.compressed, sizeof(char), size,
736 trace_load.fstream);
737 comp_ptr = trace_load.compressed;
749 uint32_t size = comp_ptr - trace_load.compressed;
751 fwrite(trace_load.compressed, sizeof(char), size,
752 trace_load.fstream);
758 fwrite(&zeros, 2, 1, trace_load.fstream);
759 fclose(trace_load.fstream);