diff options
| author | Jonathan Herman <hermanjl@cs.unc.edu> | 2012-10-09 02:39:51 -0400 |
|---|---|---|
| committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2012-10-09 02:39:51 -0400 |
| commit | 756317e8f3a6ec5a4e6147a28f10157cf8a38f4a (patch) | |
| tree | b79d5ccfd8698af38b4bf651c8e0c3956d338b6b | |
| parent | f1b106178638b6155b116ff51f55d49759a28852 (diff) | |
Temporarily disabled record hash dispatching and fixed container box filling.
| -rw-r--r-- | rt-plot-container.c | 5 | ||||
| -rw-r--r-- | rt-plot-task.c | 2 | ||||
| -rw-r--r-- | rt-plot-vcpu.c | 12 | ||||
| -rw-r--r-- | trace-graph.c | 45 |
4 files changed, 30 insertions, 34 deletions
diff --git a/rt-plot-container.c b/rt-plot-container.c index 136c51d..b21f9de 100644 --- a/rt-plot-container.c +++ b/rt-plot-container.c | |||
| @@ -145,11 +145,8 @@ void rt_plot_container(struct graph_info *ginfo, int cid) | |||
| 145 | 145 | ||
| 146 | cont->plotted = TRUE; | 146 | cont->plotted = TRUE; |
| 147 | 147 | ||
| 148 | for (vlist = cont->vcpus; vlist; vlist = vlist->next) { | 148 | for (vlist = cont->vcpus; vlist; vlist = vlist->next) |
| 149 | insert_vcpu(ginfo, cont, vlist); | 149 | insert_vcpu(ginfo, cont, vlist); |
| 150 | /* if (vlist->params.wcet && vlist->params.period) */ | ||
| 151 | /* insert_vtask(ginfo, cont, vlist); */ | ||
| 152 | } | ||
| 153 | } | 150 | } |
| 154 | 151 | ||
| 155 | void rt_plot_add_all_containers(struct graph_info *ginfo) | 152 | void rt_plot_add_all_containers(struct graph_info *ginfo) |
diff --git a/rt-plot-task.c b/rt-plot-task.c index 2acf18f..4dcbf9e 100644 --- a/rt-plot-task.c +++ b/rt-plot-task.c | |||
| @@ -678,7 +678,7 @@ void rt_plot_task(struct graph_info *ginfo, int pid, int pos) | |||
| 678 | void rt_plot_add_all_tasks(struct graph_info *ginfo) | 678 | void rt_plot_add_all_tasks(struct graph_info *ginfo) |
| 679 | { | 679 | { |
| 680 | gint *tasks; | 680 | gint *tasks; |
| 681 | int i, j, len, tmp; | 681 | int i, j, tmp; |
| 682 | tasks = task_list_pids(ginfo->rtg_info.tasks); | 682 | tasks = task_list_pids(ginfo->rtg_info.tasks); |
| 683 | 683 | ||
| 684 | /* Awful sort */ | 684 | /* Awful sort */ |
diff --git a/rt-plot-vcpu.c b/rt-plot-vcpu.c index 4045565..2c07d77 100644 --- a/rt-plot-vcpu.c +++ b/rt-plot-vcpu.c | |||
| @@ -165,7 +165,8 @@ static int try_switch_away(struct graph_info *ginfo, struct vcpu_info *vcpu_info | |||
| 165 | unsigned long long ts; | 165 | unsigned long long ts; |
| 166 | 166 | ||
| 167 | match = rt_graph_check_switch_away(ginfo, record, &pid, &job, &ts); | 167 | match = rt_graph_check_switch_away(ginfo, record, &pid, &job, &ts); |
| 168 | if (match && pid && pid == vcpu_info->task_tid && vcpu_info->task_running) { | 168 | if (match && pid && vcpu_info->task_running && |
| 169 | (pid == vcpu_info->task_tid || pid == -vcpu_info->task_tid)) { | ||
| 169 | update_task_label(vcpu_info, pid, job); | 170 | update_task_label(vcpu_info, pid, job); |
| 170 | 171 | ||
| 171 | /* This server is no longer running a real task */ | 172 | /* This server is no longer running a real task */ |
| @@ -427,21 +428,20 @@ void insert_vcpu(struct graph_info *ginfo, struct cont_list *cont, | |||
| 427 | 428 | ||
| 428 | g_assert(cont); | 429 | g_assert(cont); |
| 429 | 430 | ||
| 430 | |||
| 431 | len = strlen(cont->name) + 100; | 431 | len = strlen(cont->name) + 100; |
| 432 | label = malloc_or_die(len); | 432 | label = malloc_or_die(len); |
| 433 | 433 | ||
| 434 | if (vcpu_info->params.wcet) { | 434 | if (vcpu_info->params.wcet) { |
| 435 | vcpu->show_server = TRUE; | 435 | vcpu->show_server = TRUE; |
| 436 | snprintf(label, len, "%s - %d\nServer %d\n(%1.1f, %1.1f)", | 436 | snprintf(label, len, "%s-%d\n(%1.1f, %1.1f)", |
| 437 | cont->name, cont->cid, vcpu_info->sid, | 437 | cont->name, -vcpu_info->sid, |
| 438 | nano_as_milli(vcpu_info->params.wcet), | 438 | nano_as_milli(vcpu_info->params.wcet), |
| 439 | nano_as_milli(vcpu_info->params.period)); | 439 | nano_as_milli(vcpu_info->params.period)); |
| 440 | } else { | 440 | } else { |
| 441 | /* Always running, no need to see the server */ | 441 | /* Always running, no need to see the server */ |
| 442 | vcpu->show_server = FALSE; | 442 | vcpu->show_server = FALSE; |
| 443 | snprintf(label, len, "%s - %d\nServer %d", | 443 | snprintf(label, len, "%s-%d", |
| 444 | cont->name, cont->cid, vcpu_info->sid); | 444 | cont->name, -vcpu_info->sid); |
| 445 | } | 445 | } |
| 446 | 446 | ||
| 447 | plot = trace_graph_plot_append(ginfo, label, PLOT_TYPE_SERVER_CPU, | 447 | plot = trace_graph_plot_append(ginfo, label, PLOT_TYPE_SERVER_CPU, |
diff --git a/trace-graph.c b/trace-graph.c index f1a0486..7d4485b 100644 --- a/trace-graph.c +++ b/trace-graph.c | |||
| @@ -1949,31 +1949,30 @@ static void draw_hashed_plots(struct graph_info *ginfo) | |||
| 1949 | continue; | 1949 | continue; |
| 1950 | } | 1950 | } |
| 1951 | 1951 | ||
| 1952 | 1952 | /* hash = trace_graph_plot_find_cpu(ginfo, cpu); */ | |
| 1953 | hash = trace_graph_plot_find_cpu(ginfo, cpu); | 1953 | /* if (hash) { */ |
| 1954 | if (hash) { | 1954 | /* for (list = hash->plots; list; list = list->next) { */ |
| 1955 | for (list = hash->plots; list; list = list->next) { | 1955 | /* draw_plot(ginfo, list->plot, record); */ |
| 1956 | draw_plot(ginfo, list->plot, record); | 1956 | /* } */ |
| 1957 | } | 1957 | /* } */ |
| 1958 | } | 1958 | /* pid = pevent_data_pid(ginfo->pevent, record); */ |
| 1959 | pid = pevent_data_pid(ginfo->pevent, record); | 1959 | /* hash = trace_graph_plot_find_task(ginfo, pid); */ |
| 1960 | hash = trace_graph_plot_find_task(ginfo, pid); | 1960 | /* if (hash) { */ |
| 1961 | if (hash) { | 1961 | /* for (list = hash->plots; list; list = list->next) { */ |
| 1962 | for (list = hash->plots; list; list = list->next) { | 1962 | /* draw_plot(ginfo, list->plot, record); */ |
| 1963 | draw_plot(ginfo, list->plot, record); | 1963 | /* } */ |
| 1964 | } | 1964 | /* } */ |
| 1965 | } | ||
| 1966 | for (list = ginfo->all_recs; list; list = list->next) { | 1965 | for (list = ginfo->all_recs; list; list = list->next) { |
| 1967 | /* TODO: hacky assumption that everything else can be | 1966 | /* /\* TODO: hacky assumption that everything else can be */ |
| 1968 | * reached via previous hashes | 1967 | /* * reached via previous hashes */ |
| 1969 | * Should be an additional hashed list where things are | 1968 | /* * Should be an additional hashed list where things are */ |
| 1970 | * added with arbitrary numbers, and a pevent_other_id | 1969 | /* * added with arbitrary numbers, and a pevent_other_id */ |
| 1971 | * which uses id ranges x < . < y to parse cids or lids | 1970 | /* * which uses id ranges x < . < y to parse cids or lids */ |
| 1972 | */ | 1971 | /* *\/ */ |
| 1973 | if (list->plot->type == PLOT_TYPE_SERVER_TASK || | 1972 | /* if (list->plot->type == PLOT_TYPE_SERVER_TASK || */ |
| 1974 | list->plot->type == PLOT_TYPE_SERVER_CPU) { | 1973 | /* list->plot->type == PLOT_TYPE_SERVER_CPU) { */ |
| 1975 | draw_plot(ginfo, list->plot, record); | 1974 | draw_plot(ginfo, list->plot, record); |
| 1976 | } | 1975 | /* } */ |
| 1977 | } | 1976 | } |
| 1978 | free_record(record); | 1977 | free_record(record); |
| 1979 | } | 1978 | } |
