diff options
author | Patrick Bellasi <patrick.bellasi@arm.com> | 2015-06-22 13:49:07 +0100 |
---|---|---|
committer | Punit Agrawal <punit.agrawal@arm.com> | 2016-03-21 14:57:44 +0000 |
commit | e7de7e0c0423335ca4877282402c52676521bcd0 (patch) | |
tree | 71da8b2a6ea3c2207138c8714df4c2647e5f1aaa | |
parent | d5d6e149f5ca9210318b9b9b7d5bba92a838b8e0 (diff) |
DEBUG: schedtune: add tracepoint for SchedTune configuration update
Signed-off-by: Patrick Bellasi <patrick.bellasi@arm.com>
-rw-r--r-- | include/trace/events/sched.h | 21 | ||||
-rw-r--r-- | kernel/sched/tune.c | 4 |
2 files changed, 25 insertions, 0 deletions
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 f4fbbcd28373..3920baad104f 100644 --- a/kernel/sched/tune.c +++ b/kernel/sched/tune.c @@ -7,6 +7,8 @@ #include <linux/rcupdate.h> #include <linux/slab.h> +#include <trace/events/sched.h> + #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; } |