diff options
Diffstat (limited to 'rt-plot-task.c')
-rw-r--r-- | rt-plot-task.c | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/rt-plot-task.c b/rt-plot-task.c index 947e2e9..7132fb2 100644 --- a/rt-plot-task.c +++ b/rt-plot-task.c | |||
@@ -197,11 +197,15 @@ get_previous_release(struct graph_info *ginfo, struct rt_task_info *rtt_info, | |||
197 | } | 197 | } |
198 | 198 | ||
199 | /* | 199 | /* |
200 | * Return information for @time, returns @job, @release, @deadline, and @record. | 200 | * Get information about the given @time. |
201 | * @job: Job number at this time | 201 | * @out_job: Job number at this time |
202 | * @release: Job's release time | 202 | * @out_release: Job's release time |
203 | * @deadline: Job's deadline | 203 | * @out_deadline: Job's deadline |
204 | * @record: Matching record | 204 | * @out_record: Matching record |
205 | * | ||
206 | * Return 1 and @out_record if a record is found at @time. | ||
207 | * Return @out_job, @out_release, and @out_deadline if the current | ||
208 | * job could be calculated. | ||
205 | */ | 209 | */ |
206 | static int get_time_info(struct graph_info *ginfo, | 210 | static int get_time_info(struct graph_info *ginfo, |
207 | struct rt_task_info *rtt_info, | 211 | struct rt_task_info *rtt_info, |
@@ -766,7 +770,10 @@ void rt_plot_task_update_callback(gboolean accept, | |||
766 | trace_graph_refresh(ginfo); | 770 | trace_graph_refresh(ginfo); |
767 | } | 771 | } |
768 | 772 | ||
769 | void rt_plot_task_plotted(struct graph_info *ginfo, gint **plotted) | 773 | /** |
774 | * rt_plot_tasks_plotted - return the tasks plotted. | ||
775 | */ | ||
776 | void rt_plot_tasks_plotted(struct graph_info *ginfo, gint **plotted) | ||
770 | { | 777 | { |
771 | struct task_plot_info *task_info; | 778 | struct task_plot_info *task_info; |
772 | struct graph_plot *plot; | 779 | struct graph_plot *plot; |
@@ -783,6 +790,9 @@ void rt_plot_task_plotted(struct graph_info *ginfo, gint **plotted) | |||
783 | } | 790 | } |
784 | } | 791 | } |
785 | 792 | ||
793 | /** | ||
794 | * rt_plot_task - create a plot for @pid. | ||
795 | */ | ||
786 | void rt_plot_task(struct graph_info *ginfo, int pid, int pos) | 796 | void rt_plot_task(struct graph_info *ginfo, int pid, int pos) |
787 | { | 797 | { |
788 | struct rt_graph_info *rtg_info = &ginfo->rtg_info; | 798 | struct rt_graph_info *rtg_info = &ginfo->rtg_info; |