diff options
author | Qais Yousef <qyousef@layalina.io> | 2023-09-17 01:29:55 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2023-09-29 10:29:18 +0200 |
commit | 15874a3d27e6405e9d17595f83bd3ca1b6cab16d (patch) | |
tree | ae403709ec64172463eece37a3d92ded7497e890 /include/trace/events | |
parent | sched/uclamp: Ignore (util == 0) optimization in feec() when p_util_max = 0 (diff) | |
download | linux-15874a3d27e6405e9d17595f83bd3ca1b6cab16d.tar.xz linux-15874a3d27e6405e9d17595f83bd3ca1b6cab16d.zip |
sched/debug: Add new tracepoint to track compute energy computation
It was useful to track feec() placement decision and debug the spare
capacity and optimization issues vs uclamp_max.
Signed-off-by: Qais Yousef (Google) <qyousef@layalina.io>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Dietmar Eggemann <dietmar.eggemann@arm.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20230916232955.2099394-4-qyousef@layalina.io
Diffstat (limited to 'include/trace/events')
-rw-r--r-- | include/trace/events/sched.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/trace/events/sched.h b/include/trace/events/sched.h index fbb99a61f714..a13d5d06be9d 100644 --- a/include/trace/events/sched.h +++ b/include/trace/events/sched.h @@ -735,6 +735,11 @@ DECLARE_TRACE(sched_update_nr_running_tp, TP_PROTO(struct rq *rq, int change), TP_ARGS(rq, change)); +DECLARE_TRACE(sched_compute_energy_tp, + TP_PROTO(struct task_struct *p, int dst_cpu, unsigned long energy, + unsigned long max_util, unsigned long busy_time), + TP_ARGS(p, dst_cpu, energy, max_util, busy_time)); + #endif /* _TRACE_SCHED_H */ /* This part must be outside protection */ |