• Home
  • Raw
  • Download

Lines Matching refs:trace_bb

28 TraceBB trace_bb;  variable
244 trace_bb.filename = fname; in create_trace_bb()
251 trace_bb.fstream = fstream; in create_trace_bb()
252 trace_bb.next = &trace_bb.buffer[0]; in create_trace_bb()
253 trace_bb.flush_time = 0; in create_trace_bb()
254 trace_bb.compressed_ptr = trace_bb.compressed; in create_trace_bb()
255 trace_bb.high_water_ptr = &trace_bb.compressed[kCompressedSize] - kMaxBBCompressed; in create_trace_bb()
256 trace_bb.prev_bb_num = 0; in create_trace_bb()
257 trace_bb.prev_bb_time = 0; in create_trace_bb()
258 trace_bb.num_insns = 0; in create_trace_bb()
259 trace_bb.recnum = 0; in create_trace_bb()
545 if (trace_bb.fstream) { in trace_cleanup()
547 BBRec *next = trace_bb.next; in trace_cleanup()
548 char *comp_ptr = trace_bb.compressed_ptr; in trace_cleanup()
549 int64_t prev_bb_num = trace_bb.prev_bb_num; in trace_cleanup()
550 uint64_t prev_bb_time = trace_bb.prev_bb_time; in trace_cleanup()
551 for (ptr = trace_bb.buffer; ptr != next; ++ptr) { in trace_cleanup()
552 if (comp_ptr >= trace_bb.high_water_ptr) { in trace_cleanup()
553 uint32_t size = comp_ptr - trace_bb.compressed; in trace_cleanup()
554 fwrite(trace_bb.compressed, sizeof(char), size, in trace_cleanup()
555 trace_bb.fstream); in trace_cleanup()
556 comp_ptr = trace_bb.compressed; in trace_cleanup()
579 uint32_t size = comp_ptr - trace_bb.compressed; in trace_cleanup()
581 fwrite(trace_bb.compressed, sizeof(char), size, trace_bb.fstream); in trace_cleanup()
586 fwrite(&zeros, 3, 1, trace_bb.fstream); in trace_cleanup()
587 fclose(trace_bb.fstream); in trace_cleanup()
1387 if (trace_bb.current_bb_num == 0) in trace_exception()
1390 uint32_t current_pc = trace_bb.current_bb_addr + 4 * (trace_bb.num_insns - 1); in trace_exception()
1394 sim_time, target_pc, trace_bb.current_bb_addr, in trace_exception()
1395 trace_bb.num_insns, current_pc, trace_bb.current_bb_num, in trace_exception()
1396 trace_bb.current_bb_start_time); in trace_exception()
1407 uint64_t bb_recnum_diff = trace_bb.recnum - trace_exc.prev_bb_recnum; in trace_exception()
1408 trace_exc.prev_bb_recnum = trace_bb.recnum; in trace_exception()
1413 comp_ptr = varint_encode(trace_bb.current_bb_num, comp_ptr); in trace_exception()
1414 comp_ptr = varint_encode(trace_bb.current_bb_start_time, comp_ptr); in trace_exception()
1415 comp_ptr = varint_encode(trace_bb.num_insns, comp_ptr); in trace_exception()
1728 trace_bb.current_bb_addr = tb->pc; in trace_bb_helper()
1729 trace_bb.current_bb_num = bb_num; in trace_bb_helper()
1730 trace_bb.current_bb_start_time = sim_time; in trace_bb_helper()
1731 trace_bb.num_insns = 0; in trace_bb_helper()
1732 trace_bb.recnum += 1; in trace_bb_helper()
1738 if (bb_rec && bb_rec->bb_num == bb_num && prev_time > trace_bb.flush_time) { in trace_bb_helper()
1752 BBRec *next = trace_bb.next; in trace_bb_helper()
1753 if (next == &trace_bb.buffer[kMaxNumBasicBlocks]) { in trace_bb_helper()
1755 char *comp_ptr = trace_bb.compressed_ptr; in trace_bb_helper()
1756 int64_t prev_bb_num = trace_bb.prev_bb_num; in trace_bb_helper()
1757 uint64_t prev_bb_time = trace_bb.prev_bb_time; in trace_bb_helper()
1758 for (ptr = trace_bb.buffer; ptr != next; ++ptr) { in trace_bb_helper()
1759 if (comp_ptr >= trace_bb.high_water_ptr) { in trace_bb_helper()
1760 uint32_t size = comp_ptr - trace_bb.compressed; in trace_bb_helper()
1761 fwrite(trace_bb.compressed, sizeof(char), size, trace_bb.fstream); in trace_bb_helper()
1762 comp_ptr = trace_bb.compressed; in trace_bb_helper()
1774 trace_bb.compressed_ptr = comp_ptr; in trace_bb_helper()
1775 trace_bb.prev_bb_num = prev_bb_num; in trace_bb_helper()
1776 trace_bb.prev_bb_time = prev_bb_time; in trace_bb_helper()
1778 next = trace_bb.buffer; in trace_bb_helper()
1779 trace_bb.flush_time = sim_time; in trace_bb_helper()
1788 trace_bb.next = next; in trace_bb_helper()
1801 trace_bb.num_insns += 1; in trace_insn_helper()
1805 uint32_t current_pc = trace_bb.current_bb_addr + 4 * (trace_bb.num_insns - 1); in trace_insn_helper()