From 5cf0ec35905a73e29db5f8a451235286e6df2495 Mon Sep 17 00:00:00 2001 From: Youngtae Lee Date: Thu, 2 Nov 2017 20:53:41 +0900 Subject: [PATCH] trace: power: Add trace for schedutil governor Change-Id: I20b8c8e72e71be03a3f18eee979397c8b892e81f Signed-off-by: Youngtae Lee --- include/trace/events/power.h | 44 ++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/include/trace/events/power.h b/include/trace/events/power.h index 3eac1f9f66b9..75a69b29adf9 100644 --- a/include/trace/events/power.h +++ b/include/trace/events/power.h @@ -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), -- 2.20.1