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

Commit f1e88e60 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "trace/events/sched: print the affinity in task_util"

parents d1eca257 09dfd068
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