Loading include/trace/events/sched.h +21 −0 Original line number Diff line number Diff line Loading @@ -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 */ Loading kernel/sched/tune.c +4 −0 Original line number Diff line number Diff line Loading @@ -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; Loading Loading @@ -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; } Loading Loading
include/trace/events/sched.h +21 −0 Original line number Diff line number Diff line Loading @@ -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 */ Loading
kernel/sched/tune.c +4 −0 Original line number Diff line number Diff line Loading @@ -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; Loading Loading @@ -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; } Loading