forked from LITMUS-RT/rt-kernelshark
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrt-plot-vcpu.h
More file actions
46 lines (35 loc) · 892 Bytes
/
rt-plot-vcpu.h
File metadata and controls
46 lines (35 loc) · 892 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/**
* Plot real-time events for a single virtual CPU of a container.
*/
#include "trace-graph.h"
struct vcpu_list;
struct vcpu_info {
struct rt_plot_common common;
int sid;
/* What the vcpu is running */
int task_tid;
int task_cpu;
unsigned long long task_run_time;
gboolean task_running;
gboolean task_exec;
/* How the vcpu is running */
int server_job;
int server_cpu;
unsigned long long server_run_time;
gboolean server_running;
/* Server blocking */
unsigned long long block_time;
int block_cpu;
gboolean blocked;
gboolean fresh;
gboolean spare;
/* False if we should only show what the vcpu is running, not
* WHEN the CPU is running
*/
gboolean show_server;
char *task_label;
char *server_label;
struct cont_list *cont;
};
void insert_vcpu(struct graph_info *ginfo, struct cont_list *cont,
struct vcpu_list *vcpu_info);