Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

cpufreq: intel_pstate: Add io_boost trace

Add io_boost percent to current pstate_sample tracepoint.

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

authored by

Srinivas Pandruvada and committed by
Rafael J. Wysocki
3ba7bcaa 09c448d3

+11 -5
+2 -1
drivers/cpufreq/intel_pstate.c
··· 1316 1316 sample->mperf, 1317 1317 sample->aperf, 1318 1318 sample->tsc, 1319 - get_avg_frequency(cpu)); 1319 + get_avg_frequency(cpu), 1320 + fp_toint(cpu->iowait_boost * 100)); 1320 1321 } 1321 1322 1322 1323 static void intel_pstate_update_util(struct update_util_data *data, u64 time,
+9 -4
include/trace/events/power.h
··· 69 69 u64 mperf, 70 70 u64 aperf, 71 71 u64 tsc, 72 - u32 freq 72 + u32 freq, 73 + u32 io_boost 73 74 ), 74 75 75 76 TP_ARGS(core_busy, ··· 80 79 mperf, 81 80 aperf, 82 81 tsc, 83 - freq 82 + freq, 83 + io_boost 84 84 ), 85 85 86 86 TP_STRUCT__entry( ··· 93 91 __field(u64, aperf) 94 92 __field(u64, tsc) 95 93 __field(u32, freq) 94 + __field(u32, io_boost) 96 95 ), 97 96 98 97 TP_fast_assign( ··· 105 102 __entry->aperf = aperf; 106 103 __entry->tsc = tsc; 107 104 __entry->freq = freq; 105 + __entry->io_boost = io_boost; 108 106 ), 109 107 110 - TP_printk("core_busy=%lu scaled=%lu from=%lu to=%lu mperf=%llu aperf=%llu tsc=%llu freq=%lu ", 108 + TP_printk("core_busy=%lu scaled=%lu from=%lu to=%lu mperf=%llu aperf=%llu tsc=%llu freq=%lu io_boost=%lu", 111 109 (unsigned long)__entry->core_busy, 112 110 (unsigned long)__entry->scaled_busy, 113 111 (unsigned long)__entry->from, ··· 116 112 (unsigned long long)__entry->mperf, 117 113 (unsigned long long)__entry->aperf, 118 114 (unsigned long long)__entry->tsc, 119 - (unsigned long)__entry->freq 115 + (unsigned long)__entry->freq, 116 + (unsigned long)__entry->io_boost 120 117 ) 121 118 122 119 );