aboutsummaryrefslogtreecommitdiffstats
path: root/rt-plot-vcpu.h
diff options
context:
space:
mode:
Diffstat (limited to 'rt-plot-vcpu.h')
-rw-r--r--rt-plot-vcpu.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/rt-plot-vcpu.h b/rt-plot-vcpu.h
index 9c50a63..f88e6ab 100644
--- a/rt-plot-vcpu.h
+++ b/rt-plot-vcpu.h
@@ -11,6 +11,8 @@ struct vcpu_info {
11 int run_cpu; 11 int run_cpu;
12 unsigned long long run_time; 12 unsigned long long run_time;
13 13
14 int last_job;
15
14 int block_cpu; 16 int block_cpu;
15 unsigned long long block_time; 17 unsigned long long block_time;
16 18
@@ -24,3 +26,31 @@ struct vcpu_info {
24 26
25void insert_vcpu(struct graph_info *ginfo, struct cont_list *cont, 27void insert_vcpu(struct graph_info *ginfo, struct cont_list *cont,
26 struct vcpu_list *vcpu_info); 28 struct vcpu_list *vcpu_info);
29
30
31/* drawing methods */
32int vcpu_try_release(struct graph_info *ginfo, struct vcpu_info *vcpu_info,
33 struct record *record, struct plot_info *info);
34int vcpu_try_completion(struct graph_info *ginfo,
35 struct vcpu_info *vcpu_info,
36 struct record *record, struct plot_info *info);
37int vcpu_try_block(struct graph_info *ginfo, struct vcpu_info *vcpu_info,
38 struct record *record, struct plot_info *info);
39int vcpu_try_resume(struct graph_info *ginfo, struct vcpu_info *vcpu_info,
40 struct record *record, struct plot_info *info);
41
42/* trace-plot methods */
43void rt_vcpu_plot_start(struct graph_info *ginfo, struct graph_plot *plot,
44 unsigned long long time);
45void rt_vcpu_plot_destroy(struct graph_info *ginfo, struct graph_plot *plot);
46
47/* rt-plot-common methods */
48int rt_vcpu_plot_record_matches(struct rt_plot_common *rt,
49 struct graph_info *ginfo,
50 struct record *record);
51int rt_vcpu_plot_is_drawn(struct graph_info *ginfo, int eid);
52struct record*
53rt_vcpu_plot_write_header(struct rt_plot_common *rt,
54 struct graph_info *ginfo,
55 struct trace_seq *s,
56 unsigned long long time);