aboutsummaryrefslogtreecommitdiffstats
path: root/trace-plot-task.h
diff options
context:
space:
mode:
Diffstat (limited to 'trace-plot-task.h')
-rw-r--r--trace-plot-task.h16
1 files changed, 2 insertions, 14 deletions
diff --git a/trace-plot-task.h b/trace-plot-task.h
index e050512..11cb4f8 100644
--- a/trace-plot-task.h
+++ b/trace-plot-task.h
@@ -8,12 +8,7 @@
8struct graph_info; 8struct graph_info;
9struct graph_plot; 9struct graph_plot;
10struct plot_info; 10struct plot_info;
11 11enum graph_plot_type;
12enum task_plot_type {
13 TASK_PLOT_OTHER,
14 TASK_PLOT_LINUX,
15 TASK_PLOT_RT
16};
17 12
18/** 13/**
19 * struct task_plot_info - information for plotting a single task 14 * struct task_plot_info - information for plotting a single task
@@ -25,7 +20,6 @@ enum task_plot_type {
25 * @display_wake_time: as above, but reset under some circumstances 20 * @display_wake_time: as above, but reset under some circumstances
26 * @wake_color: 21 * @wake_color:
27 * @last_cpu: cpu task is currently running on 22 * @last_cpu: cpu task is currently running on
28 * @type: type of task plot
29 */ 23 */
30struct task_plot_info { 24struct task_plot_info {
31 int pid; 25 int pid;
@@ -36,7 +30,6 @@ struct task_plot_info {
36 unsigned long long display_wake_time; 30 unsigned long long display_wake_time;
37 int wake_color; 31 int wake_color;
38 int last_cpu; 32 int last_cpu;
39 enum task_plot_type type;
40}; 33};
41 34
42/* Querying records */ 35/* Querying records */
@@ -95,15 +88,10 @@ void graph_plot_init_tasks(struct graph_info *ginfo);
95 88
96/* Shared functionality for inheriting structs */ 89/* Shared functionality for inheriting structs */
97typedef void (plot_task_cb)(struct graph_info *ginfo, int pid, int pos); 90typedef void (plot_task_cb)(struct graph_info *ginfo, int pid, int pos);
98void graph_tasks_update_callback(enum task_plot_type type, 91void graph_tasks_update_callback(enum graph_plot_type type,
99 plot_task_cb plot_cb, 92 plot_task_cb plot_cb,
100 gboolean accept, 93 gboolean accept,
101 gint *selected, 94 gint *selected,
102 gint *non_select, 95 gint *non_select,
103 gpointer data); 96 gpointer data);
104void init_task_plot_info(struct graph_info *ginfo,
105 struct task_plot_info *task_info,
106 enum task_plot_type type, int pid);
107void graph_tasks_plotted(struct graph_info *ginfo, enum task_plot_type type,
108 gint **plotted);
109#endif 97#endif