From: Youngtae Lee Date: Thu, 6 Sep 2018 00:57:15 +0000 (+0900) Subject: trace: events: sched: Add event "activated_cpus" for frt X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5d7c2b9cb421d6c21bf893f149db9556edffc94b;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git trace: events: sched: Add event "activated_cpus" for frt Change-Id: I97802fb9f7bd0f3102ad3686848cc73bc4855966 Signed-off-by: Youngtae Lee --- diff --git a/include/trace/events/sched.h b/include/trace/events/sched.h index 1becf90de43e..17979e4a2280 100644 --- a/include/trace/events/sched.h +++ b/include/trace/events/sched.h @@ -670,6 +670,32 @@ extern bool walt_disabled; /* * Tracepoint for logging FRT schedule activity */ + +TRACE_EVENT(sched_fluid_activated_cpus, + + TP_PROTO(int cpu, int util_sum, int busy_thr, unsigned int prefer_mask), + + TP_ARGS(cpu, util_sum, busy_thr, prefer_mask), + + TP_STRUCT__entry( + __field( int, cpu ) + __field( int, util_sum ) + __field( int, busy_thr ) + __field( unsigned long, prefer_mask ) + ), + + TP_fast_assign( + __entry->cpu = cpu; + __entry->util_sum = util_sum; + __entry->busy_thr = busy_thr; + __entry->prefer_mask = prefer_mask; + ), + + TP_printk("cpu=%d util_sum=%d busy_thr=%d prefer_mask=%x", + __entry->cpu,__entry->util_sum, + __entry->busy_thr, __entry->prefer_mask) +); + TRACE_EVENT(sched_fluid_stat, TP_PROTO(struct task_struct *tsk, struct sched_avg *avg, int best, char* str),