diff options
| author | Jonathan <hermanjl@hermanjl-Aspire-5553G.(none)> | 2012-03-05 00:50:01 -0500 |
|---|---|---|
| committer | Jonathan <hermanjl@hermanjl-Aspire-5553G.(none)> | 2012-03-05 00:50:01 -0500 |
| commit | f69435260fd14ef8d9ba13774da0fcba4b5d212c (patch) | |
| tree | afd260970136bfee4e189525fc4b3476e6c945b4 /rt-graph.h | |
| parent | 2485bc49f922449ac5de596b7810b8a47a002be1 (diff) | |
Initial work generating event caches
Diffstat (limited to 'rt-graph.h')
| -rw-r--r-- | rt-graph.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/rt-graph.h b/rt-graph.h new file mode 100644 index 0000000..0ea921a --- /dev/null +++ b/rt-graph.h | |||
| @@ -0,0 +1,45 @@ | |||
| 1 | #ifndef _RT_GRAPH_H | ||
| 2 | #define _RT_GRAPH_H | ||
| 3 | |||
| 4 | #include <gtk/gtk.h> | ||
| 5 | #include "trace-cmd.h" | ||
| 6 | |||
| 7 | struct rt_graph_info { | ||
| 8 | |||
| 9 | /* Cache of event fields so that they don't need to be located | ||
| 10 | * during each access. | ||
| 11 | */ | ||
| 12 | gint task_param_id; | ||
| 13 | struct format_field *param_pid_field; | ||
| 14 | struct format_field *param_wcet_field; | ||
| 15 | struct format_field *param_period_field; | ||
| 16 | gint task_release_id; | ||
| 17 | struct format_field *release_pid_field; | ||
| 18 | struct format_field *release_job_field; | ||
| 19 | struct format_field *release_deadline_field; | ||
| 20 | gint task_completion_id; | ||
| 21 | struct format_field *completion_pid_field; | ||
| 22 | struct format_field *completion_job_field; | ||
| 23 | gint task_block_id; | ||
| 24 | struct format_field *block_pid_field; | ||
| 25 | gint task_resume_id; | ||
| 26 | struct format_field *resume_pid_field; | ||
| 27 | |||
| 28 | }; | ||
| 29 | |||
| 30 | int rt_graph_check_task_param(struct rt_graph_info *rtinfo, struct pevent *pevent, | ||
| 31 | struct record *record, gint *pid, | ||
| 32 | unsigned long long *wcet, | ||
| 33 | unsigned long long *period); | ||
| 34 | int rt_graph_check_task_release(struct rt_graph_info *rtinfo, struct pevent *pevent, | ||
| 35 | struct record *record, gint *pid, gint *job, | ||
| 36 | unsigned long long *deadline); | ||
| 37 | int rt_graph_check_task_completion(struct rt_graph_info *rtinfo, struct pevent *pevent, | ||
| 38 | struct record *record, gint *pid, gint *job); | ||
| 39 | int rt_graph_check_task_block(struct rt_graph_info *rtinfo, struct pevent *pevent, | ||
| 40 | struct record *record, gint *pid); | ||
| 41 | int rt_graph_check_task_resume(struct rt_graph_info *rtinfo, struct pevent *pevent, | ||
| 42 | struct record *record, gint *pid); | ||
| 43 | void init_rt_event_cache(struct rt_graph_info *rtinfo); | ||
| 44 | |||
| 45 | #endif | ||
