From 4a82c102a876985e6f275404875a283aded23ad4 Mon Sep 17 00:00:00 2001 From: Glenn Elliott Date: Wed, 29 Jan 2014 15:17:27 -0500 Subject: 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. --- include/litmus/rt_param.h | 1 + include/litmus/sched_trace.h | 3 ++- litmus/sched_task_trace.c | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) 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 { budget_policy_t budget_policy; /* ignored by pfair */ release_policy_t release_policy; pgm_node_type_t pgm_type; + lt_t pgm_expected_etoe; }; union 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 { struct st_pgm_param_data { u32 node_type; u16 graph_pid; - u8 __unused[10]; + u16 unused; + u64 expected_graph_etoe; }; struct 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 _ if (rec) { rec->data.pgm_param.node_type = tsk_rt(t)->task_params.pgm_type; rec->data.pgm_param.graph_pid = t->tgid; + rec->data.pgm_param.expected_graph_etoe = tsk_rt(t)->task_params.pgm_expected_etoe; put_record(rec); } } -- cgit v1.2.2