void ztrace_print_cont(const char * fmt, ... ) { if(ztrace_fp) { va_list v; va_start(v, fmt); myvfprintf(ztrace_fp, fmt, v); } }
void ztrace_print_finish(const char * fmt, ... ) { if(ztrace_fp) { va_list v; va_start(v, fmt); myvfprintf(ztrace_fp, fmt, v); fprintf(ztrace_fp,"\n"); } }
void ztrace_print_start(const struct uop_t * uop, const char * fmt, ... ) { if(ztrace_fp) { va_list v; va_start(v, fmt); ztrace_uop_ID(uop); myvfprintf(ztrace_fp, fmt, v); } }
void ztrace_print(const char * fmt, ... ) { if(ztrace_fp) { va_list v; va_start(v, fmt); // fprintf(ztrace_fp,"%lld|",sim_cycle); myvfprintf(ztrace_fp, fmt, v); fprintf(ztrace_fp,"\n"); } }
void ztrace_print(const struct Mop_t * Mop, const char * fmt, ... ) { if(ztrace_fp) { va_list v; va_start(v, fmt); ztrace_Mop_ID(Mop); myvfprintf(ztrace_fp, fmt, v); fprintf(ztrace_fp,"\n"); } }
int myvprintf(const char *fmt, va_list args) { return myvfprintf(fmt, args); }