aboutsummaryrefslogtreecommitdiffstats
path: root/trace-graph.c
diff options
context:
space:
mode:
Diffstat (limited to 'trace-graph.c')
-rw-r--r--trace-graph.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/trace-graph.c b/trace-graph.c
index de29e45..34c8268 100644
--- a/trace-graph.c
+++ b/trace-graph.c
@@ -1839,7 +1839,7 @@ static void draw_plot(struct graph_info *ginfo, struct graph_plot *plot,
1839 plot->p1, plot->p2, ginfo->draw_width, width_16, font); 1839 plot->p1, plot->p2, ginfo->draw_width, width_16, font);
1840} 1840}
1841 1841
1842static void draw_nonrt_plots(struct graph_info *ginfo) 1842static void draw_ft_plots(struct graph_info *ginfo)
1843{ 1843{
1844 gint cpu, pid; 1844 gint cpu, pid;
1845 struct record *record; 1845 struct record *record;
@@ -1860,7 +1860,7 @@ static void draw_nonrt_plots(struct graph_info *ginfo)
1860 hash = trace_graph_plot_find_cpu(ginfo, cpu); 1860 hash = trace_graph_plot_find_cpu(ginfo, cpu);
1861 if (hash) { 1861 if (hash) {
1862 for (list = hash->plots; list; list = list->next) { 1862 for (list = hash->plots; list; list = list->next) {
1863 if (list->plot->type == PLOT_TYPE_RT_TASK) 1863 if (list->plot->time != TIME_TYPE_FT)
1864 continue; 1864 continue;
1865 draw_plot(ginfo, list->plot, record); 1865 draw_plot(ginfo, list->plot, record);
1866 } 1866 }
@@ -1869,13 +1869,13 @@ static void draw_nonrt_plots(struct graph_info *ginfo)
1869 hash = trace_graph_plot_find_task(ginfo, pid); 1869 hash = trace_graph_plot_find_task(ginfo, pid);
1870 if (hash) { 1870 if (hash) {
1871 for (list = hash->plots; list; list = list->next) { 1871 for (list = hash->plots; list; list = list->next) {
1872 if (list->plot->type == PLOT_TYPE_RT_TASK) 1872 if (list->plot->time != TIME_TYPE_FT)
1873 continue; 1873 continue;
1874 draw_plot(ginfo, list->plot, record); 1874 draw_plot(ginfo, list->plot, record);
1875 } 1875 }
1876 } 1876 }
1877 for (list = ginfo->all_recs; list; list = list->next) { 1877 for (list = ginfo->all_recs; list; list = list->next) {
1878 if (list->plot->type == PLOT_TYPE_RT_TASK) 1878 if (list->plot->time != TIME_TYPE_FT)
1879 continue; 1879 continue;
1880 draw_plot(ginfo, list->plot, record); 1880 draw_plot(ginfo, list->plot, record);
1881 } 1881 }
@@ -1900,7 +1900,7 @@ static void draw_rt_plots(struct graph_info *ginfo)
1900 break; 1900 break;
1901 } 1901 }
1902 for (list = ginfo->all_recs; list; list = list->next) { 1902 for (list = ginfo->all_recs; list; list = list->next) {
1903 if (list->plot->type != PLOT_TYPE_RT_TASK) 1903 if (list->plot->time != TIME_TYPE_RT)
1904 continue; 1904 continue;
1905 draw_plot(ginfo, list->plot, record); 1905 draw_plot(ginfo, list->plot, record);
1906 } 1906 }
@@ -1965,7 +1965,7 @@ static void draw_plots(struct graph_info *ginfo, gint new_width)
1965 goto out; 1965 goto out;
1966 } 1966 }
1967 1967
1968 draw_nonrt_plots(ginfo); 1968 draw_ft_plots(ginfo);
1969 draw_rt_plots(ginfo); 1969 draw_rt_plots(ginfo);
1970 1970
1971out: 1971out: