aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Elliott <gelliott@cs.unc.edu>2014-01-29 15:17:27 -0500
committerGlenn Elliott <gelliott@cs.unc.edu>2014-01-29 15:17:27 -0500
commit9fb66a63b473b338d89893f66aa89811de165469 (patch)
tree2b0c1db653e636c9320eef7dad26cd5ffd1b6434
parent2b8387eb6535a1ebcfec9224fbf4f3837daf380d (diff)
Kludge: Add graph e-to-e period in sched_trace
Kludge the expected graph end-to-end response time into record data to make data analysis easier.
-rw-r--r--include/litmus/rt_param.h1
-rw-r--r--include/litmus/sched_trace.h3
-rw-r--r--litmus/sched_task_trace.c1
3 files changed, 4 insertions, 1 deletions
diff --git a/include/litmus/rt_param.h b/include/litmus/rt_param.h
index 7b4045069b27..76bb7d55e453 100644
--- a/include/litmus/rt_param.h
+++ b/include/litmus/rt_param.h
@@ -91,6 +91,7 @@ struct rt_task {
91 budget_policy_t budget_policy; /* ignored by pfair */ 91 budget_policy_t budget_policy; /* ignored by pfair */
92 release_policy_t release_policy; 92 release_policy_t release_policy;
93 pgm_node_type_t pgm_type; 93 pgm_node_type_t pgm_type;
94 lt_t pgm_expected_etoe;
94}; 95};
95 96
96union np_flag { 97union np_flag {
diff --git a/include/litmus/sched_trace.h b/include/litmus/sched_trace.h
index c30a80a69333..8c7dfae1ab24 100644
--- a/include/litmus/sched_trace.h
+++ b/include/litmus/sched_trace.h
@@ -83,7 +83,8 @@ struct st_sys_release_data {
83struct st_pgm_param_data { 83struct st_pgm_param_data {
84 u32 node_type; 84 u32 node_type;
85 u16 graph_pid; 85 u16 graph_pid;
86 u8 __unused[10]; 86 u16 unused;
87 u64 expected_graph_etoe;
87}; 88};
88 89
89struct st_pgm_release_data { 90struct st_pgm_release_data {
diff --git a/litmus/sched_task_trace.c b/litmus/sched_task_trace.c
index b9e772c07652..ea9e207a50d5 100644
--- a/litmus/sched_task_trace.c
+++ b/litmus/sched_task_trace.c
@@ -245,6 +245,7 @@ feather_callback void do_sched_trace_pgm_param(unsigned long id, unsigned long _
245 if (rec) { 245 if (rec) {
246 rec->data.pgm_param.node_type = tsk_rt(t)->task_params.pgm_type; 246 rec->data.pgm_param.node_type = tsk_rt(t)->task_params.pgm_type;
247 rec->data.pgm_param.graph_pid = t->tgid; 247 rec->data.pgm_param.graph_pid = t->tgid;
248 rec->data.pgm_param.expected_graph_etoe = tsk_rt(t)->task_params.pgm_expected_etoe;
248 put_record(rec); 249 put_record(rec);
249 } 250 }
250} 251}