sched/trace: support compat in enq/deq trace

Currently there is no trace support for indicating
whether an application is 32 or 64 bit compatible.
Since SOCs going forward will have a mix of support
for 32 bit vs 64 bit applications, this is needed
information.

Update the trace_sched_enq_deq output such that the
task's compatibility (32 or 64) is printed.

Change-Id: I780b6b290a77a8405dd268b45a1e7affd035036b
Signed-off-by: Stephen Dickey <dickey@codeaurora.org>
This commit is contained in:
Stephen Dickey 2021-01-26 15:36:05 -08:00 committed by Rishabh Bhatnagar
parent 7fc920beca
commit cc2a0e6b28

View File

@ -1027,6 +1027,7 @@ TRACE_EVENT(sched_enq_deq_task,
__field(unsigned int, cpus_allowed)
__field(unsigned int, demand)
__field(unsigned int, pred_demand)
__field(bool, compat_thread)
),
TP_fast_assign(
@ -1040,16 +1041,18 @@ TRACE_EVENT(sched_enq_deq_task,
__entry->cpus_allowed = cpus_allowed;
__entry->demand = task_load(p);
__entry->pred_demand = task_pl(p);
__entry->compat_thread = is_compat_thread(task_thread_info(p));
),
TP_printk("cpu=%d %s comm=%s pid=%d prio=%d nr_running=%u rt_nr_running=%u affine=%x demand=%u pred_demand=%u",
TP_printk("cpu=%d %s comm=%s pid=%d prio=%d nr_running=%u rt_nr_running=%u affine=%x demand=%u pred_demand=%u is_compat_t=%d",
__entry->cpu,
__entry->enqueue ? "enqueue" : "dequeue",
__entry->comm, __entry->pid,
__entry->prio, __entry->nr_running,
__entry->rt_nr_running,
__entry->cpus_allowed, __entry->demand,
__entry->pred_demand)
__entry->pred_demand,
__entry->compat_thread)
);
TRACE_EVENT(walt_window_rollover,