From: Patrick Bellasi Date: Mon, 22 Jun 2015 12:49:07 +0000 (+0100) Subject: DEBUG: schedtune: add tracepoint for SchedTune configuration update X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c8a65d2e9a3a6ba9d4d7b1634701dd34017f4107;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git DEBUG: schedtune: add tracepoint for SchedTune configuration update Signed-off-by: Patrick Bellasi --- diff --git a/include/trace/events/sched.h b/include/trace/events/sched.h index f58760c2f712..8ae43a2ebfda 100644 --- a/include/trace/events/sched.h +++ b/include/trace/events/sched.h @@ -654,6 +654,27 @@ TRACE_EVENT(sched_load_avg_cpu, TP_printk("cpu=%d load_avg=%lu util_avg=%lu", __entry->cpu, __entry->load_avg, __entry->util_avg) ); + +/* + * Tracepoint for sched_tune_config settings + */ +TRACE_EVENT(sched_tune_config, + + TP_PROTO(int boost), + + TP_ARGS(boost), + + TP_STRUCT__entry( + __field( int, boost ) + ), + + TP_fast_assign( + __entry->boost = boost; + ), + + TP_printk("boost=%d ", __entry->boost) +); + #endif /* _TRACE_SCHED_H */ /* This part must be outside protection */ diff --git a/kernel/sched/tune.c b/kernel/sched/tune.c index 1a8ba5a6d99b..f5f4c57efb9e 100644 --- a/kernel/sched/tune.c +++ b/kernel/sched/tune.c @@ -7,6 +7,8 @@ #include #include +#include + #include "sched.h" unsigned int sysctl_sched_cfs_boost __read_mostly; @@ -392,6 +394,8 @@ boost_write(struct cgroup_subsys_state *css, struct cftype *cft, /* Update CPU boost */ schedtune_boostgroup_update(st->idx, st->boost); + trace_sched_tune_config(st->boost); + return 0; }