Lines Matching refs:start
85 void open_svg(const char *filename, int cpus, int rows, u64 start, u64 end) in open_svg() argument
94 first_time = start; in open_svg()
153 void svg_ubox(int Yslot, u64 start, u64 end, double height, const char *type, int fd, int err, int … in svg_ubox() argument
155 double w = time2pixels(end) - time2pixels(start); in svg_ubox()
164 time2pixels(start), in svg_ubox()
172 void svg_lbox(int Yslot, u64 start, u64 end, double height, const char *type, int fd, int err, int … in svg_lbox() argument
174 double w = time2pixels(end) - time2pixels(start); in svg_lbox()
183 time2pixels(start), in svg_lbox()
191 void svg_fbox(int Yslot, u64 start, u64 end, double height, const char *type, int fd, int err, int … in svg_fbox() argument
193 double w = time2pixels(end) - time2pixels(start); in svg_fbox()
202 time2pixels(start), in svg_fbox()
210 void svg_box(int Yslot, u64 start, u64 end, const char *type) in svg_box() argument
216 time2pixels(start), time2pixels(end)-time2pixels(start), Yslot * SLOT_MULT, SLOT_HEIGHT, type); in svg_box()
220 void svg_blocked(int Yslot, int cpu, u64 start, u64 end, const char *backtrace) in svg_blocked() argument
227 time_to_string(end - start)); in svg_blocked()
230 svg_box(Yslot, start, end, "blocked"); in svg_blocked()
234 void svg_running(int Yslot, int cpu, u64 start, u64 end, const char *backtrace) in svg_running() argument
242 if (svg_highlight && end - start > svg_highlight) in svg_running()
249 cpu, time_to_string(end - start)); in svg_running()
253 time2pixels(start), time2pixels(end)-time2pixels(start), Yslot * SLOT_MULT, SLOT_HEIGHT, in svg_running()
256 text_size = (time2pixels(end)-time2pixels(start)); in svg_running()
265 time2pixels(start), Yslot * SLOT_MULT + SLOT_HEIGHT - 1, text_size, cpu + 1); in svg_running()
288 void svg_waiting(int Yslot, int cpu, u64 start, u64 end, const char *backtrace) in svg_waiting() argument
299 if (end-start > 10 * NSEC_PER_MSEC) /* 10 msec */ in svg_waiting()
302 text = time_to_string(end-start); in svg_waiting()
304 font_size = 1.0 * (time2pixels(end)-time2pixels(start)); in svg_waiting()
311 …fprintf(svgfile, "<g transform=\"translate(%.8f,%.8f)\">\n", time2pixels(start), Yslot * SLOT_MULT… in svg_waiting()
312 fprintf(svgfile, "<title>#%d waiting %s</title>\n", cpu, time_to_string(end - start)); in svg_waiting()
316 time2pixels(end)-time2pixels(start), SLOT_HEIGHT, style); in svg_waiting()
382 void svg_process(int cpu, u64 start, u64 end, int pid, const char *name, const char *backtrace) in svg_process() argument
390 if (svg_highlight && end - start >= svg_highlight) in svg_process()
397 fprintf(svgfile, "<g transform=\"translate(%.8f,%.8f)\">\n", time2pixels(start), cpu2y(cpu)); in svg_process()
398 fprintf(svgfile, "<title>%d %s running %s</title>\n", pid, name, time_to_string(end - start)); in svg_process()
402 time2pixels(end)-time2pixels(start), SLOT_MULT+SLOT_HEIGHT, type); in svg_process()
403 width = time2pixels(end)-time2pixels(start); in svg_process()
416 void svg_cstate(int cpu, u64 start, u64 end, int type) in svg_cstate() argument
433 time2pixels(start), time2pixels(end)-time2pixels(start), in svg_cstate()
436 width = (time2pixels(end)-time2pixels(start))/2.0; in svg_cstate()
444 time2pixels(start), cpu2y(cpu)+width, width, type); in svg_cstate()
473 void svg_pstate(int cpu, u64 start, u64 end, u64 freq) in svg_pstate() argument
486 time2pixels(start), time2pixels(end), height, height); in svg_pstate()
488 time2pixels(start), height+0.9, HzToHuman(freq)); in svg_pstate()
494 void svg_partial_wakeline(u64 start, int row1, char *desc1, int row2, char *desc2, const char *back… in svg_partial_wakeline() argument
514 …time2pixels(start), row1 * SLOT_MULT + SLOT_HEIGHT, time2pixels(start), row1 * SLOT_MULT + SLOT_H… in svg_partial_wakeline()
517 time2pixels(start), row1 * SLOT_MULT + SLOT_HEIGHT + SLOT_HEIGHT/48, desc2); in svg_partial_wakeline()
521 time2pixels(start), row2 * SLOT_MULT - SLOT_MULT/32, time2pixels(start), row2 * SLOT_MULT); in svg_partial_wakeline()
524 time2pixels(start), row2 * SLOT_MULT - SLOT_MULT/32, desc1); in svg_partial_wakeline()
529 …time2pixels(start), row2 * SLOT_MULT + SLOT_HEIGHT, time2pixels(start), row2 * SLOT_MULT + SLOT_H… in svg_partial_wakeline()
532 time2pixels(start), row2 * SLOT_MULT + SLOT_HEIGHT + SLOT_MULT/48, desc1); in svg_partial_wakeline()
536 time2pixels(start), row1 * SLOT_MULT - SLOT_MULT/32, time2pixels(start), row1 * SLOT_MULT); in svg_partial_wakeline()
539 time2pixels(start), row1 * SLOT_MULT - SLOT_HEIGHT/32, desc2); in svg_partial_wakeline()
547 time2pixels(start), height); in svg_partial_wakeline()
552 void svg_wakeline(u64 start, int row1, int row2, const char *backtrace) in svg_wakeline() argument
567 time2pixels(start), row1 * SLOT_MULT + SLOT_HEIGHT, time2pixels(start), row2 * SLOT_MULT); in svg_wakeline()
570 time2pixels(start), row2 * SLOT_MULT + SLOT_HEIGHT, time2pixels(start), row1 * SLOT_MULT); in svg_wakeline()
576 time2pixels(start), height); in svg_wakeline()
581 void svg_interrupt(u64 start, int row, const char *backtrace) in svg_interrupt() argument
594 time2pixels(start), row * SLOT_MULT); in svg_interrupt()
596 time2pixels(start), row * SLOT_MULT + SLOT_HEIGHT); in svg_interrupt()
601 void svg_text(int Yslot, u64 start, const char *text) in svg_text() argument
607 time2pixels(start), Yslot * SLOT_MULT+SLOT_HEIGHT/2, text); in svg_text()