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>
This commit is contained in:

committed by
Rafael J. Wysocki

parent
09c448d3c6
commit
3ba7bcaa36
@@ -69,7 +69,8 @@ TRACE_EVENT(pstate_sample,
|
||||
u64 mperf,
|
||||
u64 aperf,
|
||||
u64 tsc,
|
||||
u32 freq
|
||||
u32 freq,
|
||||
u32 io_boost
|
||||
),
|
||||
|
||||
TP_ARGS(core_busy,
|
||||
@@ -79,7 +80,8 @@ TRACE_EVENT(pstate_sample,
|
||||
mperf,
|
||||
aperf,
|
||||
tsc,
|
||||
freq
|
||||
freq,
|
||||
io_boost
|
||||
),
|
||||
|
||||
TP_STRUCT__entry(
|
||||
@@ -91,6 +93,7 @@ TRACE_EVENT(pstate_sample,
|
||||
__field(u64, aperf)
|
||||
__field(u64, tsc)
|
||||
__field(u32, freq)
|
||||
__field(u32, io_boost)
|
||||
),
|
||||
|
||||
TP_fast_assign(
|
||||
@@ -102,9 +105,10 @@ TRACE_EVENT(pstate_sample,
|
||||
__entry->aperf = aperf;
|
||||
__entry->tsc = tsc;
|
||||
__entry->freq = freq;
|
||||
__entry->io_boost = io_boost;
|
||||
),
|
||||
|
||||
TP_printk("core_busy=%lu scaled=%lu from=%lu to=%lu mperf=%llu aperf=%llu tsc=%llu freq=%lu ",
|
||||
TP_printk("core_busy=%lu scaled=%lu from=%lu to=%lu mperf=%llu aperf=%llu tsc=%llu freq=%lu io_boost=%lu",
|
||||
(unsigned long)__entry->core_busy,
|
||||
(unsigned long)__entry->scaled_busy,
|
||||
(unsigned long)__entry->from,
|
||||
@@ -112,7 +116,8 @@ TRACE_EVENT(pstate_sample,
|
||||
(unsigned long long)__entry->mperf,
|
||||
(unsigned long long)__entry->aperf,
|
||||
(unsigned long long)__entry->tsc,
|
||||
(unsigned long)__entry->freq
|
||||
(unsigned long)__entry->freq,
|
||||
(unsigned long)__entry->io_boost
|
||||
)
|
||||
|
||||
);
|
||||
|
Reference in New Issue
Block a user