trace: events: sched: Add event "activated_cpus" for frt
authorYoungtae Lee <yt0729.lee@samsung.com>
Thu, 6 Sep 2018 00:57:15 +0000 (09:57 +0900)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:24:58 +0000 (20:24 +0300)
Change-Id: I97802fb9f7bd0f3102ad3686848cc73bc4855966
Signed-off-by: Youngtae Lee <yt0729.lee@samsung.com>
include/trace/events/sched.h

index 1becf90de43e45beabb10c9f65c7aadab7af7652..17979e4a228099970400a4605c26e890c7a6ec11 100644 (file)
@@ -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),