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

Commit 22f9774b authored by John zhao's avatar John zhao
Browse files

sched: add the max_freq comparing for evaluating the mitigation



trace_sched_get_task_cpu_cycles traces max_freq during the tracing of
OSM cycle considering mitigated such as thermal etc.

Change-Id: If134630e293ceaf8faf2aa0ed7d4cfdfe7b3a4d6
CRs-Fixed: 1108711
Signed-off-by: default avatarJohn zhao <yuankuiz@codeaurora.org>
parent 2116b44b
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -398,6 +398,7 @@ TRACE_EVENT(sched_get_task_cpu_cycles,
		__field(u64,		exec_time	)
		__field(u32,		freq		)
		__field(u32,		legacy_freq	)
		__field(u32,		max_freq)
	),

	TP_fast_assign(
@@ -407,11 +408,13 @@ TRACE_EVENT(sched_get_task_cpu_cycles,
		__entry->exec_time 	= exec_time;
		__entry->freq		= cpu_cycles_to_freq(cycles, exec_time);
		__entry->legacy_freq 	= cpu_cur_freq(cpu);
		__entry->max_freq	= cpu_max_freq(cpu);
	),

	TP_printk("cpu=%d event=%d cycles=%llu exec_time=%llu freq=%u legacy_freq=%u",
	TP_printk("cpu=%d event=%d cycles=%llu exec_time=%llu freq=%u legacy_freq=%u max_freq=%u",
		__entry->cpu, __entry->event, __entry->cycles,
		  __entry->exec_time, __entry->freq, __entry->legacy_freq)
		__entry->exec_time, __entry->freq, __entry->legacy_freq,
		__entry->max_freq)
);

TRACE_EVENT(sched_update_history,