mirror of
https://github.com/torvalds/linux.git
synced 2026-07-31 03:27:03 +02:00
sched/walt: Add window rollover trace event
Add window rollover trace event to track cpu's WALT window rollover. Change-Id: I4a2e7291f31a1ac50144086eaf6ae920a07ca545 Signed-off-by: Lingutla Chandrasekhar <clingutla@codeaurora.org> Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
This commit is contained in:
parent
89a180556f
commit
ceda5e2445
|
|
@ -1088,6 +1088,23 @@ TRACE_EVENT(sched_enq_deq_task,
|
|||
__entry->cpus_allowed, __entry->demand,
|
||||
__entry->pred_demand)
|
||||
);
|
||||
|
||||
TRACE_EVENT(walt_window_rollover,
|
||||
|
||||
TP_PROTO(u64 window_start),
|
||||
|
||||
TP_ARGS(window_start),
|
||||
|
||||
TP_STRUCT__entry(
|
||||
__field(u64, window_start)
|
||||
),
|
||||
|
||||
TP_fast_assign(
|
||||
__entry->window_start = window_start;
|
||||
),
|
||||
|
||||
TP_printk("window_start=%llu", __entry->window_start)
|
||||
);
|
||||
#endif /* _TRACE_WALT_H */
|
||||
|
||||
#undef TRACE_INCLUDE_PATH
|
||||
|
|
|
|||
|
|
@ -2159,8 +2159,10 @@ static inline void run_walt_irq_work(u64 old_window_start, struct rq *rq)
|
|||
|
||||
result = atomic64_cmpxchg(&walt_irq_work_lastq_ws, old_window_start,
|
||||
wrq->window_start);
|
||||
if (result == old_window_start)
|
||||
if (result == old_window_start) {
|
||||
walt_irq_work_queue(&walt_cpufreq_irq_work);
|
||||
trace_walt_window_rollover(wrq->window_start);
|
||||
}
|
||||
}
|
||||
|
||||
/* Reflect task activity on its demand and cpu's busy time statistics */
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user