diff options
Diffstat (limited to 'rt-plot-task.c')
-rw-r--r-- | rt-plot-task.c | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/rt-plot-task.c b/rt-plot-task.c index b6d794d..557bfff 100644 --- a/rt-plot-task.c +++ b/rt-plot-task.c | |||
@@ -298,11 +298,9 @@ static int try_release(struct graph_info *ginfo, struct rt_task_info *rtt_info, | |||
298 | update_job(rtt_info, job); | 298 | update_job(rtt_info, job); |
299 | info->release = TRUE; | 299 | info->release = TRUE; |
300 | info->rtime = release; | 300 | info->rtime = release; |
301 | info->rlabel = rtt_info->label; | ||
302 | 301 | ||
303 | info->deadline = TRUE; | 302 | info->deadline = TRUE; |
304 | info->dtime = deadline; | 303 | info->dtime = deadline; |
305 | info->dlabel = rtt_info->label; | ||
306 | 304 | ||
307 | if (job <= 3) | 305 | if (job <= 3) |
308 | rtt_info->first_rels[job - 1] = release; | 306 | rtt_info->first_rels[job - 1] = release; |
@@ -328,7 +326,6 @@ static int try_completion(struct graph_info *ginfo, | |||
328 | update_job(rtt_info, job); | 326 | update_job(rtt_info, job); |
329 | info->completion = TRUE; | 327 | info->completion = TRUE; |
330 | info->ctime = ts; | 328 | info->ctime = ts; |
331 | info->clabel = rtt_info->label; | ||
332 | dprintf(3, "Completion for %d:%d on %d at %llu\n", | 329 | dprintf(3, "Completion for %d:%d on %d at %llu\n", |
333 | pid, job, record->cpu, ts); | 330 | pid, job, record->cpu, ts); |
334 | ret = 1; | 331 | ret = 1; |
@@ -627,35 +624,37 @@ static int rt_task_plot_display_info(struct graph_info *ginfo, | |||
627 | &job, &release, &deadline, &record); | 624 | &job, &release, &deadline, &record); |
628 | restore_offsets(ginfo, offsets); | 625 | restore_offsets(ginfo, offsets); |
629 | 626 | ||
630 | /* Show real-time data about time */ | ||
631 | pid = rtt_info->pid; | 627 | pid = rtt_info->pid; |
632 | comm = pevent_data_comm_from_pid(ginfo->pevent, pid); | 628 | comm = pevent_data_comm_from_pid(ginfo->pevent, pid); |
633 | trace_seq_printf(s, "%s - %d:%d\n", comm, pid, job); | 629 | trace_seq_printf(s, "%s-%d:%d\n", comm, pid, job); |
634 | 630 | ||
635 | if (record) { | 631 | if (record) { |
636 | rts = get_rts(ginfo, record); | 632 | rts = get_rts(ginfo, record); |
637 | eid = pevent_data_type(ginfo->pevent, record); | 633 | eid = pevent_data_type(ginfo->pevent, record); |
638 | 634 | ||
639 | if (in_res(ginfo, deadline, time)) { | 635 | if (in_res(ginfo, deadline, time)) { |
640 | trace_seq_printf(s, "litmus_deadline for %d:%d at %llu\n", | 636 | trace_seq_printf(s, "\nlitmus_deadline\n" |
637 | "deadline(job(%d,%d)): %llu\n", | ||
641 | pid, job, deadline); | 638 | pid, job, deadline); |
642 | } | 639 | } |
643 | if (in_res(ginfo, release, time)) { | 640 | if (in_res(ginfo, release, time)) { |
644 | trace_seq_printf(s, "litmus_release for %d:%d at %llu\n", | 641 | trace_seq_printf(s, "\nlitmus_release\n" |
642 | "release(job(%d,%d)): %llu\n", | ||
645 | pid, job, release); | 643 | pid, job, release); |
646 | } | 644 | } |
647 | 645 | ||
648 | if (in_res(ginfo, rts, time)) { | 646 | if (in_res(ginfo, rts, time)) { |
649 | event = pevent_data_event_from_type(ginfo->pevent, eid); | 647 | event = pevent_data_event_from_type(ginfo->pevent, eid); |
650 | if (event) { | 648 | if (event) { |
649 | trace_seq_putc(s, '\n'); | ||
651 | trace_seq_puts(s, event->name); | 650 | trace_seq_puts(s, event->name); |
652 | trace_seq_putc(s, '\n'); | 651 | trace_seq_putc(s, '\n'); |
653 | pevent_event_info(s, event, record); | 652 | pevent_event_info(s, event, record); |
654 | trace_seq_putc(s, '\n'); | ||
655 | } else | 653 | } else |
656 | trace_seq_printf(s, "UNKNOWN EVENT %d\n", eid); | 654 | trace_seq_printf(s, "\nUNKNOWN EVENT %d\n", eid); |
657 | } | 655 | } |
658 | convert_nano(get_rts(ginfo, record), &sec, &usec); | 656 | trace_seq_putc(s, '\n'); |
657 | convert_nano(time, &sec, &usec); | ||
659 | trace_seq_printf(s, "%lu.%06lu CPU: %03d", | 658 | trace_seq_printf(s, "%lu.%06lu CPU: %03d", |
660 | sec, usec, record->cpu); | 659 | sec, usec, record->cpu); |
661 | free_record(record); | 660 | free_record(record); |