Lines Matching full:trace_method
123 extern TraceMethod trace_method;
132 TraceMethod trace_method;
498 trace_method.filename = fname;
505 trace_method.fstream = fstream;
506 trace_method.compressed_ptr = trace_method.compressed;
507 trace_method.prev_time = 0;
508 trace_method.prev_addr = 0;
509 trace_method.prev_pid = 0;
824 if (trace_method.fstream) {
825 uint32_t size = trace_method.compressed_ptr - trace_method.compressed;
827 fwrite(trace_method.compressed, sizeof(char), size,
828 trace_method.fstream);
834 fwrite(&zeros, 2, 1, trace_method.fstream);
835 fclose(trace_method.fstream);
1949 if (trace_method.fstream == NULL)
1952 fprintf(stderr, "trace_method time: %llu p%d 0x%x %d\n",
1955 char *comp_ptr = trace_method.compressed_ptr;
1957 if (max_end_ptr >= &trace_method.compressed[kCompressedSize]) {
1958 uint32_t size = comp_ptr - trace_method.compressed;
1959 fwrite(trace_method.compressed, sizeof(char), size, trace_method.fstream);
1960 comp_ptr = trace_method.compressed;
1962 uint64_t time_diff = sim_time - trace_method.prev_time;
1963 trace_method.prev_time = sim_time;
1965 int32_t addr_diff = addr - trace_method.prev_addr;
1966 trace_method.prev_addr = addr;
1968 int32_t pid_diff = current_pid - trace_method.prev_pid;
1969 trace_method.prev_pid = current_pid;
1975 trace_method.compressed_ptr = comp_ptr;