mirror of
https://github.com/torvalds/linux.git
synced 2026-07-30 19:21:28 +02:00
sched: walt: expand waltgov_util_update trace point
When experiencing frequency related issues, it will be helpful to be aware of any potential clamping issues, as well as reasons why we might end up not updating to a different frequency. Change-Id: I0be24d713421357e077cd01d5c84f43138a17b24 Signed-off-by: Shaleen Agrawal <shalagra@codeaurora.org>
This commit is contained in:
parent
a62a217748
commit
39605473ba
|
|
@ -206,7 +206,8 @@ static unsigned int get_next_freq(struct waltgov_policy *wg_policy,
|
|||
unsigned int freq = policy->cpuinfo.max_freq;
|
||||
|
||||
freq = map_util_freq(util, freq, max);
|
||||
trace_waltgov_next_freq(policy->cpu, util, max, freq);
|
||||
trace_waltgov_next_freq(policy->cpu, util, max, freq, policy->min, policy->max,
|
||||
wg_policy->cached_raw_freq, wg_policy->need_freq_update);
|
||||
|
||||
if (freq == wg_policy->cached_raw_freq && !wg_policy->need_freq_update)
|
||||
return wg_policy->next_freq;
|
||||
|
|
|
|||
|
|
@ -647,25 +647,38 @@ TRACE_EVENT(waltgov_util_update,
|
|||
|
||||
TRACE_EVENT(waltgov_next_freq,
|
||||
TP_PROTO(unsigned int cpu, unsigned long util, unsigned long max,
|
||||
unsigned int freq),
|
||||
TP_ARGS(cpu, util, max, freq),
|
||||
unsigned int freq, unsigned int min_freq, unsigned int max_freq,
|
||||
unsigned int cached_raw_freq, bool need_freq_update),
|
||||
TP_ARGS(cpu, util, max, freq, min_freq, max_freq, cached_raw_freq, need_freq_update),
|
||||
TP_STRUCT__entry(
|
||||
__field(unsigned int, cpu)
|
||||
__field(unsigned long, util)
|
||||
__field(unsigned long, max)
|
||||
__field(unsigned int, freq)
|
||||
__field(unsigned int, min_freq)
|
||||
__field(unsigned int, max_freq)
|
||||
__field(unsigned int, cached_raw_freq)
|
||||
__field(bool, need_freq_update)
|
||||
),
|
||||
TP_fast_assign(
|
||||
__entry->cpu = cpu;
|
||||
__entry->util = util;
|
||||
__entry->max = max;
|
||||
__entry->freq = freq;
|
||||
__entry->cpu = cpu;
|
||||
__entry->util = util;
|
||||
__entry->max = max;
|
||||
__entry->freq = freq;
|
||||
__entry->min_freq = min_freq;
|
||||
__entry->max_freq = max_freq;
|
||||
__entry->cached_raw_freq = cached_raw_freq;
|
||||
__entry->need_freq_update = need_freq_update;
|
||||
),
|
||||
TP_printk("cpu=%u util=%lu max=%lu freq=%u",
|
||||
TP_printk("cpu=%u util=%lu max=%lu freq=%u min_freq=%lu max_freq=%lu cached_raw_freq=%lu need_update=%d",
|
||||
__entry->cpu,
|
||||
__entry->util,
|
||||
__entry->max,
|
||||
__entry->freq)
|
||||
__entry->freq,
|
||||
__entry->min_freq,
|
||||
__entry->max_freq,
|
||||
__entry->cached_raw_freq,
|
||||
__entry->need_freq_update)
|
||||
);
|
||||
|
||||
TRACE_EVENT(walt_active_load_balance,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user