diff options
| author | Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> | 2016-09-13 20:41:33 -0400 |
|---|---|---|
| committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2016-09-16 17:55:30 -0400 |
| commit | 3ba7bcaa3657f5fe32295ebd17fbdaaf16608e2f (patch) | |
| tree | 0f4e6e0ccf8603afa6b703c8d9ffb73ab54addc2 /include | |
| parent | 09c448d3c61f31322c097cb4c1484778d50da399 (diff) | |
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>
Diffstat (limited to 'include')
| -rw-r--r-- | include/trace/events/power.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/include/trace/events/power.h b/include/trace/events/power.h index 19e50300ce7d..54e3aad32806 100644 --- a/include/trace/events/power.h +++ b/include/trace/events/power.h | |||
| @@ -69,7 +69,8 @@ TRACE_EVENT(pstate_sample, | |||
| 69 | u64 mperf, | 69 | u64 mperf, |
| 70 | u64 aperf, | 70 | u64 aperf, |
| 71 | u64 tsc, | 71 | u64 tsc, |
| 72 | u32 freq | 72 | u32 freq, |
| 73 | u32 io_boost | ||
| 73 | ), | 74 | ), |
| 74 | 75 | ||
| 75 | TP_ARGS(core_busy, | 76 | TP_ARGS(core_busy, |
| @@ -79,7 +80,8 @@ TRACE_EVENT(pstate_sample, | |||
| 79 | mperf, | 80 | mperf, |
| 80 | aperf, | 81 | aperf, |
| 81 | tsc, | 82 | tsc, |
| 82 | freq | 83 | freq, |
| 84 | io_boost | ||
| 83 | ), | 85 | ), |
| 84 | 86 | ||
| 85 | TP_STRUCT__entry( | 87 | TP_STRUCT__entry( |
| @@ -91,6 +93,7 @@ TRACE_EVENT(pstate_sample, | |||
| 91 | __field(u64, aperf) | 93 | __field(u64, aperf) |
| 92 | __field(u64, tsc) | 94 | __field(u64, tsc) |
| 93 | __field(u32, freq) | 95 | __field(u32, freq) |
| 96 | __field(u32, io_boost) | ||
| 94 | ), | 97 | ), |
| 95 | 98 | ||
| 96 | TP_fast_assign( | 99 | TP_fast_assign( |
| @@ -102,9 +105,10 @@ TRACE_EVENT(pstate_sample, | |||
| 102 | __entry->aperf = aperf; | 105 | __entry->aperf = aperf; |
| 103 | __entry->tsc = tsc; | 106 | __entry->tsc = tsc; |
| 104 | __entry->freq = freq; | 107 | __entry->freq = freq; |
| 108 | __entry->io_boost = io_boost; | ||
| 105 | ), | 109 | ), |
| 106 | 110 | ||
| 107 | TP_printk("core_busy=%lu scaled=%lu from=%lu to=%lu mperf=%llu aperf=%llu tsc=%llu freq=%lu ", | 111 | TP_printk("core_busy=%lu scaled=%lu from=%lu to=%lu mperf=%llu aperf=%llu tsc=%llu freq=%lu io_boost=%lu", |
| 108 | (unsigned long)__entry->core_busy, | 112 | (unsigned long)__entry->core_busy, |
| 109 | (unsigned long)__entry->scaled_busy, | 113 | (unsigned long)__entry->scaled_busy, |
| 110 | (unsigned long)__entry->from, | 114 | (unsigned long)__entry->from, |
| @@ -112,7 +116,8 @@ TRACE_EVENT(pstate_sample, | |||
| 112 | (unsigned long long)__entry->mperf, | 116 | (unsigned long long)__entry->mperf, |
| 113 | (unsigned long long)__entry->aperf, | 117 | (unsigned long long)__entry->aperf, |
| 114 | (unsigned long long)__entry->tsc, | 118 | (unsigned long long)__entry->tsc, |
| 115 | (unsigned long)__entry->freq | 119 | (unsigned long)__entry->freq, |
| 120 | (unsigned long)__entry->io_boost | ||
| 116 | ) | 121 | ) |
| 117 | 122 | ||
| 118 | ); | 123 | ); |
