trace: power: Add trace for schedutil governor
authorYoungtae Lee <yt0729.lee@samsung.com>
Thu, 2 Nov 2017 11:53:41 +0000 (20:53 +0900)
committerChungwoo Park <cww.park@samsung.com>
Mon, 21 May 2018 08:30:23 +0000 (17:30 +0900)
Change-Id: I20b8c8e72e71be03a3f18eee979397c8b892e81f
Signed-off-by: Youngtae Lee <yt0729.lee@samsung.com>
include/trace/events/power.h

index 3eac1f9f66b929293bbc2ac839b95da73cc21460..75a69b29adf9f3f244625e60b0506bc196adfdaf 100644 (file)
@@ -39,6 +39,50 @@ DEFINE_EVENT(cpu, cpu_idle,
        TP_ARGS(state, cpu_id)
 );
 
+TRACE_EVENT(sugov_slack_func,
+
+       TP_PROTO(int cpu),
+
+       TP_ARGS(cpu),
+
+       TP_STRUCT__entry(
+               __field(int, cpu)
+       ),
+
+       TP_fast_assign(
+               __entry->cpu = cpu;
+       ),
+
+       TP_printk("cpu=%d SLACK EXPIRED", __entry->cpu)
+);
+
+TRACE_EVENT(sugov_slack,
+
+       TP_PROTO(int cpu, unsigned long util,
+               unsigned long min, unsigned long action, int ret),
+
+       TP_ARGS(cpu, util, min, action, ret),
+
+       TP_STRUCT__entry(
+               __field(int, cpu)
+               __field(unsigned long, util)
+               __field(unsigned long, min)
+               __field(unsigned long, action)
+               __field(int, ret)
+       ),
+
+       TP_fast_assign(
+               __entry->cpu = cpu;
+               __entry->util = util;
+               __entry->min = min;
+               __entry->action = action;
+               __entry->ret = ret;
+       ),
+
+       TP_printk("cpu=%d util=%ld min=%ld action=%ld ret=%d", __entry->cpu,
+                       __entry->util, __entry->min, __entry->action, __entry->ret)
+);
+
 TRACE_EVENT(powernv_throttle,
 
        TP_PROTO(int chip_id, const char *reason, int pmax),