aboutsummaryrefslogtreecommitdiffstats
path: root/rt-graph.c
diff options
context:
space:
mode:
authorJonathan Herman <hermanjl@cs.unc.edu>2012-10-15 17:18:01 -0400
committerJonathan Herman <hermanjl@cs.unc.edu>2012-10-15 17:18:01 -0400
commit34c00c482f8d63af02784de9d376237611b42bfe (patch)
tree4ecf10ace6253f848ee2a73a76bb9e79171164e3 /rt-graph.c
parent84c21bf0c89821bd35b035cd9f7f08acc13ea2dc (diff)
Allow servers to run on a special NULL cpu.HEADmaster
Diffstat (limited to 'rt-graph.c')
-rw-r--r--rt-graph.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/rt-graph.c b/rt-graph.c
index f9abcef..b77f9ea 100644
--- a/rt-graph.c
+++ b/rt-graph.c
@@ -664,7 +664,7 @@ int rt_graph_check_server_param(struct graph_info *ginfo, struct record *record,
664int rt_graph_check_server_switch_to(struct graph_info *ginfo, 664int rt_graph_check_server_switch_to(struct graph_info *ginfo,
665 struct record *record, 665 struct record *record,
666 gint *sid, gint *job, 666 gint *sid, gint *job,
667 gint *tid, gint *tjob, 667 gint *tid, gint *tjob, gint *cpu,
668 unsigned long long *ts) 668 unsigned long long *ts)
669{ 669{
670 struct rt_graph_info *rtg_info = &ginfo->rtg_info; 670 struct rt_graph_info *rtg_info = &ginfo->rtg_info;
@@ -684,6 +684,7 @@ int rt_graph_check_server_switch_to(struct graph_info *ginfo,
684 STORE_FIELD(rtg_info, event, sswitch_to, job); 684 STORE_FIELD(rtg_info, event, sswitch_to, job);
685 STORE_FIELD(rtg_info, event, sswitch_to, tid); 685 STORE_FIELD(rtg_info, event, sswitch_to, tid);
686 STORE_FIELD(rtg_info, event, sswitch_to, tjob); 686 STORE_FIELD(rtg_info, event, sswitch_to, tjob);
687 STORE_FIELD(rtg_info, event, sswitch_to, cpu);
687 } 688 }
688 689
689 id = pevent_data_type(pevent, record); 690 id = pevent_data_type(pevent, record);
@@ -692,6 +693,7 @@ int rt_graph_check_server_switch_to(struct graph_info *ginfo,
692 LOAD_INT(rtg_info, record, sswitch_to, job, job); 693 LOAD_INT(rtg_info, record, sswitch_to, job, job);
693 LOAD_INT(rtg_info, record, sswitch_to, tid, tid); 694 LOAD_INT(rtg_info, record, sswitch_to, tid, tid);
694 LOAD_INT(rtg_info, record, sswitch_to, tjob, tjob); 695 LOAD_INT(rtg_info, record, sswitch_to, tjob, tjob);
696 LOAD_INT(rtg_info, record, sswitch_to, cpu, cpu);
695 *ts = get_rts(ginfo, record); 697 *ts = get_rts(ginfo, record);
696 698
697 dprintf(3, "Read server_switch_to(job(%d, %d)): %d\n", 699 dprintf(3, "Read server_switch_to(job(%d, %d)): %d\n",
@@ -709,7 +711,7 @@ int rt_graph_check_server_switch_to(struct graph_info *ginfo,
709int rt_graph_check_server_switch_away(struct graph_info *ginfo, 711int rt_graph_check_server_switch_away(struct graph_info *ginfo,
710 struct record *record, 712 struct record *record,
711 gint *sid, gint *job, 713 gint *sid, gint *job,
712 gint *tid, gint *tjob, 714 gint *tid, gint *tjob, gint *cpu,
713 unsigned long long *ts) 715 unsigned long long *ts)
714{ 716{
715 struct rt_graph_info *rtg_info = &ginfo->rtg_info; 717 struct rt_graph_info *rtg_info = &ginfo->rtg_info;
@@ -729,6 +731,7 @@ int rt_graph_check_server_switch_away(struct graph_info *ginfo,
729 STORE_FIELD(rtg_info, event, sswitch_away, job); 731 STORE_FIELD(rtg_info, event, sswitch_away, job);
730 STORE_FIELD(rtg_info, event, sswitch_away, tid); 732 STORE_FIELD(rtg_info, event, sswitch_away, tid);
731 STORE_FIELD(rtg_info, event, sswitch_away, tjob); 733 STORE_FIELD(rtg_info, event, sswitch_away, tjob);
734 STORE_FIELD(rtg_info, event, sswitch_away, cpu);
732 } 735 }
733 736
734 id = pevent_data_type(pevent, record); 737 id = pevent_data_type(pevent, record);
@@ -737,6 +740,7 @@ int rt_graph_check_server_switch_away(struct graph_info *ginfo,
737 LOAD_INT(rtg_info, record, sswitch_away, job, job); 740 LOAD_INT(rtg_info, record, sswitch_away, job, job);
738 LOAD_INT(rtg_info, record, sswitch_away, tid, tid); 741 LOAD_INT(rtg_info, record, sswitch_away, tid, tid);
739 LOAD_INT(rtg_info, record, sswitch_away, tjob, tjob); 742 LOAD_INT(rtg_info, record, sswitch_away, tjob, tjob);
743 LOAD_INT(rtg_info, record, sswitch_away, tjob, cpu);
740 *ts = get_rts(ginfo, record); 744 *ts = get_rts(ginfo, record);
741 745
742 746