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

Commit 574a2d18 authored by Chris Redpath's avatar Chris Redpath
Browse files

ANDROID: trace/sched: add tracepoint for rt_rq PELT signal



We want to be able to track rt_rq signals same as we do for other RQs.

Change-Id: I38b64baa50e1ff86019ca4b8b0a04af994880b35
Signed-off-by: default avatarChris Redpath <chris.redpath@arm.com>
parent a05271a0
Loading
Loading
Loading
Loading
+25 −0
Original line number Diff line number Diff line
@@ -642,6 +642,31 @@ TRACE_EVENT(sched_load_cfs_rq,
		  __get_str(path), __entry->load, __entry->util)
);

/*
 * Tracepoint for rt_rq load tracking:
 */
struct rt_rq;

TRACE_EVENT(sched_load_rt_rq,

	TP_PROTO(int cpu, struct rt_rq *rt_rq),

	TP_ARGS(cpu, rt_rq),

	TP_STRUCT__entry(
		__field(	int,		cpu			)
		__field(	unsigned long,	util			)
	),

	TP_fast_assign(
		__entry->cpu	= cpu;
		__entry->util	= rt_rq->avg.util_avg;
	),

	TP_printk("cpu=%d util=%lu", __entry->cpu,
		  __entry->util)
);

/*
 * Tracepoint for sched_entity load tracking:
 */
+2 −0
Original line number Diff line number Diff line
@@ -3029,6 +3029,8 @@ ___update_load_avg(u64 now, int cpu, struct sched_avg *sa,
	else {
		if (likely(!rt_rq))
			trace_sched_load_se(container_of(sa, struct sched_entity, avg));
		else
			trace_sched_load_rt_rq(cpu, rt_rq);
	}

	return 1;