diff options
Diffstat (limited to 'trace-graph.h')
-rw-r--r-- | trace-graph.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/trace-graph.h b/trace-graph.h index 5d7c247..cfa5db7 100644 --- a/trace-graph.h +++ b/trace-graph.h | |||
@@ -44,6 +44,11 @@ enum graph_plot_type { | |||
44 | PLOT_TYPE_RT_TASK, | 44 | PLOT_TYPE_RT_TASK, |
45 | }; | 45 | }; |
46 | 46 | ||
47 | enum plot_time_type { | ||
48 | TIME_TYPE_FT, | ||
49 | TIME_TYPE_RT | ||
50 | }; | ||
51 | |||
47 | struct graph_plot; | 52 | struct graph_plot; |
48 | 53 | ||
49 | struct plot_info { | 54 | struct plot_info { |
@@ -133,6 +138,7 @@ struct plot_callbacks { | |||
133 | 138 | ||
134 | struct graph_plot { | 139 | struct graph_plot { |
135 | enum graph_plot_type type; | 140 | enum graph_plot_type type; |
141 | enum plot_time_type time; | ||
136 | int pos; | 142 | int pos; |
137 | char *label; | 143 | char *label; |
138 | const struct plot_callbacks *cb; | 144 | const struct plot_callbacks *cb; |
@@ -337,12 +343,14 @@ void trace_graph_plot_init(struct graph_info *ginfo); | |||
337 | struct graph_plot *trace_graph_plot_append(struct graph_info *ginfo, | 343 | struct graph_plot *trace_graph_plot_append(struct graph_info *ginfo, |
338 | const char *label, | 344 | const char *label, |
339 | enum graph_plot_type type, | 345 | enum graph_plot_type type, |
346 | enum plot_time_type time, | ||
340 | const struct plot_callbacks *cb, | 347 | const struct plot_callbacks *cb, |
341 | void *data); | 348 | void *data); |
342 | struct graph_plot *trace_graph_plot_insert(struct graph_info *ginfo, | 349 | struct graph_plot *trace_graph_plot_insert(struct graph_info *ginfo, |
343 | int pos, | 350 | int pos, |
344 | const char *label, | 351 | const char *label, |
345 | enum graph_plot_type type, | 352 | enum graph_plot_type type, |
353 | enum plot_time_type time, | ||
346 | const struct plot_callbacks *cb, | 354 | const struct plot_callbacks *cb, |
347 | void *data); | 355 | void *data); |
348 | void trace_graph_plot_remove(struct graph_info *ginfo, struct graph_plot *plot); | 356 | void trace_graph_plot_remove(struct graph_info *ginfo, struct graph_plot *plot); |