diff options
author | Jonathan <hermanjl@hermanjl-Aspire-5553G.(none)> | 2012-03-05 23:01:14 -0500 |
---|---|---|
committer | Jonathan <hermanjl@hermanjl-Aspire-5553G.(none)> | 2012-03-05 23:01:14 -0500 |
commit | bb3a47fd55929bbeef0a6dfdef1017391d5b7425 (patch) | |
tree | 06481a5e4dc47e3090d15a47257f0e32ae76aa4f /rt-graph.h | |
parent | 61266395ff4f371933c104cff6671aae7f43c3fd (diff) |
rt-graph: simple real-time task plots
Diffstat (limited to 'rt-graph.h')
-rw-r--r-- | rt-graph.h | 19 |
1 files changed, 17 insertions, 2 deletions
@@ -8,7 +8,7 @@ | |||
8 | 8 | ||
9 | struct rt_graph_info { | 9 | struct rt_graph_info { |
10 | 10 | ||
11 | /* List of all tasks */ | 11 | /* List of all real-time tasks */ |
12 | struct task_list *tasks[TASK_HASH_SIZE]; | 12 | struct task_list *tasks[TASK_HASH_SIZE]; |
13 | 13 | ||
14 | /* Cache of event fields so that they don't need to be located | 14 | /* Cache of event fields so that they don't need to be located |
@@ -19,6 +19,16 @@ struct rt_graph_info { | |||
19 | struct format_field *param_wcet_field; | 19 | struct format_field *param_wcet_field; |
20 | struct format_field *param_period_field; | 20 | struct format_field *param_period_field; |
21 | 21 | ||
22 | gint task_switch_to_id; | ||
23 | struct format_field *switch_to_pid_field; | ||
24 | struct format_field *switch_to_job_field; | ||
25 | struct format_field *switch_to_when_field; | ||
26 | |||
27 | gint task_switch_away_id; | ||
28 | struct format_field *switch_to_pid_field; | ||
29 | struct format_field *switch_to_job_field; | ||
30 | struct format_field *switch_to_when_field; | ||
31 | |||
22 | gint task_release_id; | 32 | gint task_release_id; |
23 | struct format_field *release_pid_field; | 33 | struct format_field *release_pid_field; |
24 | struct format_field *release_job_field; | 34 | struct format_field *release_job_field; |
@@ -37,7 +47,6 @@ struct rt_graph_info { | |||
37 | gint task_resume_id; | 47 | gint task_resume_id; |
38 | struct format_field *resume_pid_field; | 48 | struct format_field *resume_pid_field; |
39 | struct format_field *resume_when_field; | 49 | struct format_field *resume_when_field; |
40 | |||
41 | }; | 50 | }; |
42 | 51 | ||
43 | /* Event parsers */ | 52 | /* Event parsers */ |
@@ -45,6 +54,12 @@ int rt_graph_check_task_param(struct rt_graph_info *rtinfo, struct pevent *peven | |||
45 | struct record *record, gint *pid, | 54 | struct record *record, gint *pid, |
46 | unsigned long long *wcet, | 55 | unsigned long long *wcet, |
47 | unsigned long long *period); | 56 | unsigned long long *period); |
57 | int rt_graph_check_task_switch_to(struct rt_graph_info *rtinfo, struct pevent *pevent, | ||
58 | struct record *record, gint *pid, gint *job, | ||
59 | unsigned long long *when); | ||
60 | int rt_graph_check_task_switch_away(struct rt_graph_info *rtinfo, struct pevent *pevent, | ||
61 | struct record *record, gint *pid, gint *job, | ||
62 | unsigned long long *when); | ||
48 | int rt_graph_check_task_release(struct rt_graph_info *rtinfo, struct pevent *pevent, | 63 | int rt_graph_check_task_release(struct rt_graph_info *rtinfo, struct pevent *pevent, |
49 | struct record *record, gint *pid, gint *job, | 64 | struct record *record, gint *pid, gint *job, |
50 | unsigned long long *release, | 65 | unsigned long long *release, |