Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 09dfd068 authored by Sai Harshini Nimmala's avatar Sai Harshini Nimmala
Browse files

trace/events/sched: print the affinity in task_util



Currently affinity is only printed in enq_deq traces. Print it in
task_util traces to aid debugging of sched placement decisions.

Change-Id: If915102652e1ae666d4dd0136951839666c45243
Signed-off-by: default avatarSai Harshini Nimmala <snimmala@codeaurora.org>
parent 7764f1a9
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -1235,6 +1235,7 @@ TRACE_EVENT(sched_task_util,
		__field(bool,		rtg_skip_min)
		__field(int,		start_cpu)
		__field(u32,		unfilter)
		__field(unsigned long,  cpus_allowed)
	),

	TP_fast_assign(
@@ -1258,16 +1259,17 @@ TRACE_EVENT(sched_task_util,
#else
		__entry->unfilter		= 0;
#endif
		__entry->cpus_allowed           = cpumask_bits(&p->cpus_allowed)[0];
	),

	TP_printk("pid=%d comm=%s util=%lu prev_cpu=%d candidates=%#lx best_energy_cpu=%d sync=%d need_idle=%d fastpath=%d placement_boost=%d latency=%llu stune_boosted=%d is_rtg=%d rtg_skip_min=%d start_cpu=%d unfilter=%u",
	TP_printk("pid=%d comm=%s util=%lu prev_cpu=%d candidates=%#lx best_energy_cpu=%d sync=%d need_idle=%d fastpath=%d placement_boost=%d latency=%llu stune_boosted=%d is_rtg=%d rtg_skip_min=%d start_cpu=%d unfilter=%u affine=%#lx",
		__entry->pid, __entry->comm, __entry->util, __entry->prev_cpu,
		__entry->candidates, __entry->best_energy_cpu, __entry->sync,
		__entry->need_idle, __entry->fastpath, __entry->placement_boost,
		__entry->latency, __entry->stune_boosted,
		__entry->is_rtg, __entry->rtg_skip_min, __entry->start_cpu,
		__entry->unfilter)
)
		__entry->unfilter, __entry->cpus_allowed)
);

/*
 * Tracepoint for find_best_target