diff options
Diffstat (limited to 'include/trace/events/power.h')
| -rw-r--r-- | include/trace/events/power.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/include/trace/events/power.h b/include/trace/events/power.h index cda100d6762d..e5bf9a76f169 100644 --- a/include/trace/events/power.h +++ b/include/trace/events/power.h | |||
| @@ -35,6 +35,54 @@ DEFINE_EVENT(cpu, cpu_idle, | |||
| 35 | TP_ARGS(state, cpu_id) | 35 | TP_ARGS(state, cpu_id) |
| 36 | ); | 36 | ); |
| 37 | 37 | ||
| 38 | TRACE_EVENT(pstate_sample, | ||
| 39 | |||
| 40 | TP_PROTO(u32 core_busy, | ||
| 41 | u32 scaled_busy, | ||
| 42 | u32 state, | ||
| 43 | u64 mperf, | ||
| 44 | u64 aperf, | ||
| 45 | u32 freq | ||
| 46 | ), | ||
| 47 | |||
| 48 | TP_ARGS(core_busy, | ||
| 49 | scaled_busy, | ||
| 50 | state, | ||
| 51 | mperf, | ||
| 52 | aperf, | ||
| 53 | freq | ||
| 54 | ), | ||
| 55 | |||
| 56 | TP_STRUCT__entry( | ||
| 57 | __field(u32, core_busy) | ||
| 58 | __field(u32, scaled_busy) | ||
| 59 | __field(u32, state) | ||
| 60 | __field(u64, mperf) | ||
| 61 | __field(u64, aperf) | ||
| 62 | __field(u32, freq) | ||
| 63 | |||
| 64 | ), | ||
| 65 | |||
| 66 | TP_fast_assign( | ||
| 67 | __entry->core_busy = core_busy; | ||
| 68 | __entry->scaled_busy = scaled_busy; | ||
| 69 | __entry->state = state; | ||
| 70 | __entry->mperf = mperf; | ||
| 71 | __entry->aperf = aperf; | ||
| 72 | __entry->freq = freq; | ||
| 73 | ), | ||
| 74 | |||
| 75 | TP_printk("core_busy=%lu scaled=%lu state=%lu mperf=%llu aperf=%llu freq=%lu ", | ||
| 76 | (unsigned long)__entry->core_busy, | ||
| 77 | (unsigned long)__entry->scaled_busy, | ||
| 78 | (unsigned long)__entry->state, | ||
| 79 | (unsigned long long)__entry->mperf, | ||
| 80 | (unsigned long long)__entry->aperf, | ||
| 81 | (unsigned long)__entry->freq | ||
| 82 | ) | ||
| 83 | |||
| 84 | ); | ||
| 85 | |||
| 38 | /* This file can get included multiple times, TRACE_HEADER_MULTI_READ at top */ | 86 | /* This file can get included multiple times, TRACE_HEADER_MULTI_READ at top */ |
| 39 | #ifndef _PWR_EVENT_AVOID_DOUBLE_DEFINING | 87 | #ifndef _PWR_EVENT_AVOID_DOUBLE_DEFINING |
| 40 | #define _PWR_EVENT_AVOID_DOUBLE_DEFINING | 88 | #define _PWR_EVENT_AVOID_DOUBLE_DEFINING |
