Commit 2890008f authored by Dietmar Eggemann's avatar Dietmar Eggemann Committed by Ionela Voinescu
Browse files

sched_tp: Add update_time to sched_pelt_cfs and sched_pelt_rq_template



The trace event sched_pelt_se already has this entry to trace PELT's
last_update_time.
Having this for cfs, rt, dl rq and irq as well is interesting to debug
PELT issues, especially with time-scaling (rq_clock_task/clock_pelt
diff and sync).
Signed-off-by: Dietmar Eggemann's avatarDietmar Eggemann <dietmar.eggemann@arm.com>
parent 323c6a81
......@@ -36,6 +36,7 @@ TRACE_EVENT(sched_pelt_cfs,
__field( unsigned long, load )
__field( unsigned long, RBL_LOAD_ENTRY )
__field( unsigned long, util )
__field( unsigned long long, update_time )
),
TP_fast_assign(
......@@ -44,11 +45,12 @@ TRACE_EVENT(sched_pelt_cfs,
__entry->load = avg->load_avg;
__entry->RBL_LOAD_ENTRY = avg->RBL_LOAD_MEMBER;
__entry->util = avg->util_avg;
__entry->update_time = avg->last_update_time;
),
TP_printk("cpu=%d path=%s load=%lu " RBL_LOAD_STR "=%lu util=%lu",
TP_printk("cpu=%d path=%s load=%lu " RBL_LOAD_STR "=%lu util=%lu update_time=%llu",
__entry->cpu, __entry->path, __entry->load,
__entry->RBL_LOAD_ENTRY,__entry->util)
__entry->RBL_LOAD_ENTRY,__entry->util, __entry->update_time)
);
DECLARE_EVENT_CLASS(sched_pelt_rq_template,
......@@ -62,6 +64,7 @@ DECLARE_EVENT_CLASS(sched_pelt_rq_template,
__field( unsigned long, load )
__field( unsigned long, RBL_LOAD_ENTRY )
__field( unsigned long, util )
__field( unsigned long long, update_time )
),
TP_fast_assign(
......@@ -69,11 +72,12 @@ DECLARE_EVENT_CLASS(sched_pelt_rq_template,
__entry->load = avg->load_avg;
__entry->RBL_LOAD_ENTRY = avg->RBL_LOAD_MEMBER;
__entry->util = avg->util_avg;
__entry->update_time = avg->last_update_time;
),
TP_printk("cpu=%d load=%lu " RBL_LOAD_STR "=%lu util=%lu",
TP_printk("cpu=%d load=%lu " RBL_LOAD_STR "=%lu util=%lu update_time=%llu",
__entry->cpu, __entry->load,
__entry->RBL_LOAD_ENTRY,__entry->util)
__entry->RBL_LOAD_ENTRY,__entry->util, __entry->update_time)
);
DEFINE_EVENT(sched_pelt_rq_template, sched_pelt_rt,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment